Ticket #1126 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Exceptions arising from error page

Reported by: dread Owned by: dread
Priority: minor Milestone: ckan-v1.4-sprint-7
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

I'm not completely clear what the use case is for loading the error page in this way, but somehow original_request is None and that creates an unnecessary exception with the logic refactor.

http://ckan.net/error/document?__cache=39020485
...
Module ckan.controllers.error:29 in document
<<          original_response = request.environ.get('pylons.original_response')
               # Bypass error template for API operations.
               if original_request.path.startswith('/api'):
                   return original_response.body
               # Otherwise, decorate original response with error template.
>>  if original_request.path.startswith('/api'):
AttributeError: 'NoneType' object has no attribute 'path'

Change History

comment:1 Changed 3 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in cset:61bb142a6b7c for ckan v1.3.5.

Note: See TracTickets for help on using tickets.