-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Capabilites API response does not have shareapi_exclude_groups #31576
Comments
GitMate.io thinks possibly related issues are #3061 (API - failed response BUG), #9304 ([webdav] Etag does not change when disabling share api), #22666 (No WWW-authenticate response header for HTTP PUT API requests), #3215 (OCS API does not allow function closures as actions), and #5724 ([OC6Beta2] Share API Get all shares doesn't work with CURL). |
PR #31580 should do it |
I'm not sure whether this is a good idea as it could be revealing private information. Some users might not be allowed to know about the existence of other groups but having this on capabilities would expose just that. In general I'd expect all API calls to already comply with this rule so clients wouldn't need to know about the exclusion, so the acceptance tests would be the only case ? cc @patrickjahns @SamuAlfageme as we talked about capabilities this morning |
If a client wants to be nice, it can query the capabilities when it connects. Then it knows the various sharing things that can/cannot be done (e.g. if public link shares are not enabled, or the whole of sharing is not enabled, or...). The client can then pro-actively switch off bits of its UI, rather than having elements on the UI that are going to result in error messages if the end-user tries to use them. But yes, for keeping group names as private as possible, it would be better if the client provides their authentication to some end-point which responds with client-behavior capabilities - e.g. |
Yes, the |
For this change here, adding to the general capabilities report, would it be easy for the Capabilities class to know the answer to Then a Capabilities class instance can control the response based on who is asking. The |
close as we have can_share now ? |
Yes, closing. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
While starting to make acceptance tests related to "exclude groups from sharing", I noticed that the setting of this does not appear in the capabilities API response.
It would be good to have it, so tests can easily see what the current setting is and so (in future) clients can easily know about the setting and adjust their sharing behavior (if they care).
The text was updated successfully, but these errors were encountered: