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)

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
Derp, wrong component :(
Component: Knowledge Base Articles → Knowledge Base Software
OS: Windows 7 → All
QA Contact: kb-articles → kb-software
Hardware: x86_64 → All
Target Milestone: 2011Q3 → 2011Q4
Assignee: nobody → tgavankar
Cleaning up 2011Q4
Target Milestone: 2011Q4 → ---
Assignee: tgavankar → nobody
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.