Traversals past pages declared with __call__ attribute generate error 500s
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Christian Reis |
Bug Description
If you traverse past pages declared using the __call__ attribute, you hit a 500 error. For instance, the IPerson rdf is declared like this:
<browser:page
for=
name="+rdf"
lp:url="/person/
permissio
class=
attribute
/>
If you visit https:/
* Module zope.app.
ob2 = ob.publishTrave
* Module zope.app.
raise NotFoundError(self, name, request)
NotFoundError: (<zope.
I think NotFoundError is not the right thing to raise there, and that's the source of the bug, but Steve's the man.
Changed in launchpad: | |
assignee: | nobody → stevea |
Changed in launchpad: | |
status: | In Progress → Fix Released |
The __call__ should catch the expected exception and return None rather than NotFoundError