-
Notifications
You must be signed in to change notification settings - Fork 187
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
Api tests scenario related to share permission needs changes #5249
Comments
@kobergj @kulmann @fschade @individual-it @phil-davis @SwikritiT is this actual behavior? |
@micbar ^ |
IMO the currently-implemented general rule is: In oC10: ignore permissions that are not useful/relevant to the resource (for example, create permission is not relevant to a shared file - the file is already created when it is shared). Mask off the irrelevant permission bits, and create (or update) the share with just the useful permission bits from those requested. In ocis: if the requested permissions include permissions that are not useful/relevant to the resource, then fail the request. The client must request only permission bits that are useful/relevant. Can someone confirm that these 2 different implementations are both acceptable? Then we can make the understand what to expect for each backend. |
@phil-davis Thanks for your analysis. That is obviously a difference. From my POV, the permission bitmask is nearing deprecation an is only be there because of legacy reasons. I am always against "magical" Api behavior, especially in this case where we are dealing with permissions. The API should return "Bad Request" and a reason. Conclusion: we accept the behavior as it is. |
@amrita-shrestha you (or you can assign someone) can "skip on ocis" the oC10 scenarios that fail because of this different behavior. Then out scenarios that demonstrate the agreed ocis behavior. Maybe it will be easiest to have examples for ocis in the existing scenario outlines? Anyway, however you do it, coordinate with @kiranparajuli589 as he copies various parts of the core acceptance tests across to the ocis repo - we don't want to accidentally lose anything. |
all PR has been merged so closing this issue |
The behavior of share permission is acting differently in ocis and oc10 .
Discussed in this comment: #4052 (comment)
According to this comment, it is actual behavior so we need to refactor our test scenario of share permission in ocis
Related issue
Example
In this tests scenario permission is 7 but currently permission 7 is unavailable in ocis
QA Todo
The text was updated successfully, but these errors were encountered: