[Oxfam] AttributeError: 'ReferenceManual' object has no attribute 'blobfile'

Bug #1236823 reported by Stefan Walluhn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Won't Fix
Undecided
Unassigned

Bug Description

We got an error report from an Oxfam Karl user. When accessing the reference manuals (https://karl.oxfam.org.uk/intranets/files/reference-manuals/), selecting one item in the showed file list and clicking on the 'Download' button, there is a 'General error'

The tracebacks looks as follows:

AttributeError: 'ReferenceManual' object has no attribute 'blobfile'
Exception when processing https://karl.oxfam.org.uk/intranets/files/reference-manuals/download_zipped?filenames%5B%5D=health-and-safety
Referer: https://karl.oxfam.org.uk/intranets/files/reference-manuals/

Traceback (most recent call last):
  File "/srv/multikarl/deployment/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/multikarl/deployment/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/multikarl/deployment/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/multikarl/deployment/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/multikarl/deployment/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/multikarl/deployment/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/multikarl/deployment/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/multikarl/deployment/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 319, in viewresult_to_response
    result = view(context, request)
  File "/srv/multikarl/deployment/eggs/karl-3.111-py2.6.egg/karl/content/views/files.py", line 669, in download_zipped
    add_selected(zipped, context[filename], path)
  File "/srv/multikarl/deployment/eggs/karl-3.111-py2.6.egg/karl/content/views/files.py", line 661, in add_selected
    data = selected.blobfile.open().read()
AttributeError: 'ReferenceManual' object has no attribute 'blobfile'

Changed in karl3:
status: New → Won't Fix
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.