-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PloneSite acquired for itself in aq_chain #169
Comments
@jaroel I took a look at this problem and it's not the fault of In the URL:
When plone.rest/src/plone/rest/traverse.py Lines 66 to 80 in 79f1d19
When ZPublihser resolves names that start with "+" it sets the of of the object returned by the traverse method with the parent container of ++api++. Which in this case are the same object. So that's why the Plone site is acquired by itself. I don't think this behavior needs to be changed. Perhaps what needs to be changed is the way |
While the aq_chain check might not catch all edge cases yet, the goal of the plone.rest/src/plone/rest/traverse.py Lines 56 to 60 in 79f1d19
I think your comment is helpful, thanks! |
We had https://github.com/zopefoundation/Products.CMFCore/blob/master/src/Products/CMFCore/explicitacquisition.py enabled, which made requests for (at least) site root fail.
The CMFCore behaviour is correct, just don't know why we have PloneSite twice in the aq_chain.
Reproduce: explicitly enable the check or disable skipping it and then run the test
test_site_root_get_request
.The text was updated successfully, but these errors were encountered: