<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1126: Exceptions arising from error page</title>
    <link>http://localhost/ticket/1126</link>
    <description>&lt;p&gt;
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.
&lt;/p&gt;
&lt;pre class="wiki"&gt;http://ckan.net/error/document?__cache=39020485
...
Module ckan.controllers.error:29 in document
&amp;lt;&amp;lt;          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.
&amp;gt;&amp;gt;  if original_request.path.startswith('/api'):
AttributeError: 'NoneType' object has no attribute 'path'
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1126</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Thu, 05 May 2011 09:17:58 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1126#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1126#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Fixed in cset:61bb142a6b7c for ckan v1.3.5.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>