Bug 8782

Summary: toastermain settings.py hardcoded filecache location
Product: [Build System, Metadata & Runtime] Toaster Reporter: Michael Wood <michael.g.wood>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium CC: alexandru.costinx.roman, belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.1   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Wood 2015-12-09 16:14:06 UTC
In the toastermain/settings.py file the cache location we specify:

CACHES = {
           'default': {
               'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
               'LOCATION': '/tmp/django-default-cache',
               'TIMEOUT': 1,
            }
          }

This means that if user A runs toaster that directory is owned by user A meaning the if B runs it we get a permission denied error. In 1.8 this causes an exception.
Comment 2 Alexandru Roman 2016-02-01 10:24:01 UTC
Verified.