Closed
Bug 676541
Opened 14 years ago
Closed 6 years ago
[traceback] Uncaught PermissionDenied in gallery.views.delete_media
Categories
(support.mozilla.org :: Knowledge Base Software, task, P4)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jsocol, Unassigned)
Details
We sometimes throw a PermissionDenied error in gallery.utils.check_media_permissions but gallery.views.delete_media doesn't catch and handle it. We end up with a 500 ISE instead of a nice 403.
http://arecibo1.dmz.sjc1.mozilla.com/view/6779/ (VPN-only)
Thanks, Arecibo (and Sentinel, which tripped this)!
File "/data/www/support.allizom.org/kitsune/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/support.allizom.org/kitsune/apps/access/decorators.py", line 47, in _wrapped_view
return view_fn(request, *args, **kwargs)
File "/data/www/support.allizom.org/kitsune/apps/gallery/views.py", line 199, in delete_media
check_media_permissions(media, request.user, 'delete')
File "/data/www/support.allizom.org/kitsune/apps/gallery/utils.py", line 102, in check_media_permissions
raise PermissionDenied
Reporter | ||
Comment 1•14 years ago
|
||
Derp, wrong component :(
Component: Knowledge Base Articles → Knowledge Base Software
OS: Windows 7 → All
QA Contact: kb-articles → kb-software
Hardware: x86_64 → All
Updated•13 years ago
|
Target Milestone: 2011Q3 → 2011Q4
Updated•13 years ago
|
Assignee: nobody → tgavankar
Updated•13 years ago
|
Assignee: tgavankar → nobody
Updated•8 years ago
|
Priority: -- → P4
You need to log in
before you can comment on or make changes to this bug.
Description
•