Bug 8782 - toastermain settings.py hardcoded filecache location
Summary: toastermain settings.py hardcoded filecache location
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Michael Wood
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-12-09 16:14 UTC by Michael Wood
Modified: 2016-02-01 10:24 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.