Closed Bug 736601 Opened 12 years ago Closed 12 years ago

[traceback][stage] Error: OSError: [Errno 13] Permission denied: '/data/www/mozillians.allizom.org/mozillians/media/uploads/userprofile/kevin.jpg'

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mbrandt, Assigned: timw)

References

()

Details

(Whiteboard: [rel:03/21/2012])

Attachments

(1 file)

When attempting to upload a profile image the app returns a 500.

Steps to reproduce:
1. upload an image via a users profile page

Traceback (most recent call last):

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/views/decorators/cache.py", line 88, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 19, in _wrapped_view
   return view_func(request, *args, **kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/views.py", line 70, in edit_profile
   form.save(request)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/forms.py", line 141, in save
   super(ProfileForm, self).save(request.user)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/forms.py", line 87, in save
   super(forms.ModelForm, self).save()

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/forms/models.py", line 363, in save
   fail_message, commit, construct=False)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/forms/models.py", line 85, in save_instance
   instance.save()

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/base.py", line 463, in save
   self.save_base(using=using, force_insert=force_insert, force_update=force_update)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/base.py", line 528, in save_base
   values = [(f, None, (raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks]

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/fields/files.py", line 253, in pre_save
   file.save(file.name, file, save=False)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/fields/files.py", line 90, in save
   self.name = self.storage.save(name, content)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/files/storage.py", line 49, in save
   name = self._save(name, content)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/files/storage.py", line 195, in _save
   fd = os.open(full_path, os.O_WRONLY | os.O_CREAT | os.O_EXCL | getattr(os, 'O_BINARY', 0))

OSError: [Errno 13] Permission denied: '/data/www/mozillians.allizom.org/mozillians/media/uploads/userprofile/kevin.jpg'
Assignee: nobody → timw
Recursively fixed permissions on userprofile directory. Should work now.
Webops fixed apache permissions, I just tested on my own profile and uploaded a photo ok.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attached image qa - verified
QA verified on stage - adding and removing images works as expected.
Status: RESOLVED → VERIFIED
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: