Skip to content

Commit

Permalink
Register the ExceptionView for the unspecific ``zope.interface.In…
Browse files Browse the repository at this point in the history
…terface``, to plone.rest

adapters for requests providing a interface like ``plone.rest.interfaces.IAPIRequest``. This one isn't  a browser layer, and without this fix the ExceptionView would be registered for the base IBrowserLayer.
Before, there was a exception handling skin script, which could be overloaded by plone.rest.
  • Loading branch information
thet committed Jan 30, 2018
1 parent 3a50c3e commit 5bbd4d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -38,6 +38,10 @@ Bug Fixes:

- Require AccessControl 4.0b1 so ``guarded_getitem`` is used.
Part of PloneHotfix20171128. [maurits]
- Register the ``ExceptionView`` for the unspecific ``zope.interface.Interface``, to plone.rest
adapters for requests providing a interface like ``plone.rest.interfaces.IAPIRequest``. This one isn't a browser layer, and without this fix the ExceptionView would be registered for the base IBrowserLayer.
Before, there was a exception handling skin script, which could be overloaded by plone.rest.
[thet]

- Improved isURLInPortal according to PloneHotfix20171128.
Accept only http/https, and doubly check escaped urls. [maurits]
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/configure.zcml
Expand Up @@ -283,6 +283,7 @@
class=".exceptions.ExceptionView"
template="templates/error_message.pt"
permission="zope.Public"
layer="zope.interface.Interface"
/>

</configure>

0 comments on commit 5bbd4d4

Please sign in to comment.