-
Notifications
You must be signed in to change notification settings - Fork 55
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
@@jsonbytype permission after upgrading from versions older than 1.3b1 #857
Comments
I've done more tests and it looks like it doesn't happen only when upgrade. |
Usually, for problems between upgrades we suggest reading changelogs and see which implementation may have introduced the problem you're describing. github has a feature that can help you in this endeavor: using https://help.github.com/en/articles/comparing-commits-across-time you can compare all commits between the versions you used in your test. In the scenario of this issue: if you take 1.0a6 version and compare to the newest commit,
to
I don't know if by changing permissions in |
At first I thought it happened only when upgrading, but on my later tests it also happens on a fresh install. So I guess it's not required an upgrade step. |
It was changed from (Click on 1.2b1...1.3b1#diff-d874ab145d94829c27c5b7431db4d17aL57 to (Click on 1.2b1...1.3b1#diff-f549427a7e7f3e61f0d313f1e942048cR25 And said in the changelog: https://github.com/collective/collective.cover/blob/master/CHANGES.rst#13b1-2016-09-12
IMHO there's no error here. If you want diferent behavior, you should add to a policy package in your installation. We've had a similar discussion about these differences and rolemaps in #855 (comment). |
But in this example, the user does have Local Editor permission only at this specific Cover. |
@shogunbr As a workaround you can use Security wise, this method returns a catalog, so the user is seeing what was expected to see. But if you're using zope2.View and an attacker knows this url and plans to overload your server this could be an issue. I recommend in this case to use |
After upgrading collective.cover from versions older than 1.3b1, compose content tree is not filled with content to users who doesn't have Site Admin or global Editor rights.
@@jsonbytype gives an unauthorized error.
Steps to reproduce:
1 - Create a new Plone site (i've tested on a clean 4.3.18 instance) and install collective.cover 1.2b (or older) add-on
2 - Upgrade collective.cover to 1.3b (or newer up to 1.8b2)
3 - Run the upgrade steps
4 - Create a regular user (do not add him to any group)
5 - Create a Cover
6 - At the sharing tab of the cover, add permissions, so this user can compose (i've added all permissions).
7 - Login as the user and click on Compose tab of this cover. Try to add content from the Content Tree
8 - The Content tree will be empty
The error doesn't happen to the Site Admin or to Editor role, only to Member users.
The error doesn't happen if the Plone site have never had older collective.cover versions prior to 1.3b installed.
Any ideas how it can be fixed?
The text was updated successfully, but these errors were encountered: