-
Notifications
You must be signed in to change notification settings - Fork 176
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
setting FRONTEND_ENABLE_RESHARING to false is not working for api #6651
Comments
I see this in the docs: https://doc.owncloud.com/ocis/next/deployment/services/s-list/frontend.html#environment-variables
|
@kobergj can we check that out? |
Imo this works as designed. (1) the sharer has When you create a share via API with permissions |
web sends 31 permission in sharing request and gets 15 in response. how does it work? Screen.Recording.2023-06-28.at.10.12.08.mov |
web sends the |
It means that the backend is somehow processing this env
without role: |
Correct. If If you don't send |
Okey, @kobergj thank you for clarification: that means:
|
okay then i will do as that |
@micbar is this the intended server behaviour? I mean just because it is the actual behaviour doesn't necessarily mean it is the correct one... |
For now i will be writing tests using role only. But I also think server should be able to handle permissions only too because we get response in permission but not role. We also have tests on sharing using permissions only. If this is the intended behavior then we can solve the issue and add tests on permissions later. |
I wonder about the name Maybe "FRONTEND" refers to the OCS API? In that case if Then there are the various GRPC CS3ORG... APIs - I suppose that a client that is talking to the server with GRPC... will not be affected by this env var setting. (Sorry for the long text - I am just not sure what the requirement really is for this env var) |
Yes I agree. The behaviour of the server is not consistent. We need to clarify if Regarding |
Closing this issue beacuse reshare has been deprecated from ocis on this PR #8762. Mentioned in migration doc https://github.com/owncloud/docs-ocis/pull/739/files#diff-04cd79e526c8a7f0162d8fc5bc5fa8c501fe9e5899024268837c05a74349b26cR148-R149 |
Describe the bug
When the environment variable FRONTEND_ENABLE_RESHARING is set to false, resharing should not be possible but it can be done through api.
Steps to reproduce
Steps to reproduce the behavior:
setting env FRONTEND_ENABLE_RESHARING=false
Einstein
creates a folder "test" and shares withMarie
with permission 31 through apiMarie
accepts the share requested byEinstein
Marie
shares 'Shares/test" withMoss
through api.Moss
can accept the share and "test" folder is visibleExpected behavior
When
Einstein
shares "test" folder withMarie
with permission 31, the response should containAnd
Marie
should get response as follows while resharing "/Shares/test" folder toMoss
.Actual behavior
When
Einstein
shares "test" folder withMarie
with permission 31 using apiusing curl command:
Response here
the response contains
Marie
acceps the share requested byEinstein
andAgain when
Marie
shares 'Shares/test" withMoss
through apiusing curl command:
Response here
the response contains
indicating reshare is possible
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
locally with env variables as follows
Additional context
This issue is same for files too.
While sharing, the share permission given should be discarded (ie: 16 should be subtracted) which is not happening
The text was updated successfully, but these errors were encountered: