Skip to content

Commit

Permalink
fix regression in traversal of plone.app.folder.base.ReplaceableWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Nov 6, 2017
1 parent ff1ccda commit ec5fd4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -31,6 +31,10 @@ Bugfixes

- Prevent UnicodeDecodeError when publishing image (bytes) responses without content-type

- Fix regression in traversing to WebDAV NullResources if the final object
in the path is a proxy that provides access to aq_inner but is not itself
an acquisition wrapper.

Changes
+++++++

Expand Down
3 changes: 1 addition & 2 deletions src/ZPublisher/BaseRequest.py
Expand Up @@ -475,8 +475,7 @@ def traverse(self, path, response=None, validated_hook=None):
hasattr(object, 'aq_base') and
not hasattr(object, '__bobo_traverse__')):

if (object.__parent__ is not
aq_inner(object).__parent__):
if object.__parent__ is not object.aq_inner.__parent__:
object = NullResource(parents[-2], object.getId(),
self).__of__(parents[-2])

Expand Down

0 comments on commit ec5fd4b

Please sign in to comment.