Error monitor IndexError on thumbnail view

Bug #777365 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

At https://karl.soros.org/profiles/xxx/photo/thumb/ (where xxx is the user name):

  File "/srv/osfkarl/production/15/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
    return view(context, request)
  File "/srv/osfkarl/production/15/eggs/karl-3.56-py2.6.egg/karl/content/views/files.py", line 538, in thumbnail_view
    filename = request.subpath[0] # <width>x<length>.jpg
IndexError: tuple index out of range

Tags: r3.58
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

The problem is that this is an invalid URL. It doesn't look like I have access to the access logs, so I can't see what page might be referring folks to this URL.

A couple of action items:

1) Update the error monitor log to also provide referrer, giving us some insight into how users might be getting here.

2) Update the thumbnail view to detect this condition and raise NotFound, turning this into a 404 instead of an error for the error monitor.

Changed in karl3:
milestone: m54 → m55
Changed in karl3:
milestone: m55 → m56
Changed in karl3:
status: New → In Progress
Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
JimPGlenn (jpglenn09)
tags: added: r3.59
JimPGlenn (jpglenn09)
tags: added: r3.58
removed: r3.59
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.