-
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
SharingNg. sharing invitation #7962
Comments
Yes, I can reproduce that. So we have a bit of a problem here as we allow to create invitations with more than one receipient e.g.
If all of that succeeds we return a 200. However if one of the recipients already has a share for that resource. We return a 207 (Multistatus) with multiple values like this:
And if all of them fail, or there was just one recipiet, we return a 500 regardless of why the CreateShare failed. I guess we could at least set the error in the body to something more helpful. But setting a proper statuscode for the whole request seem difficult. We could of course do some special casing when there was just one recipient in the request and map the error of that single request to a proper status code. Maybe we're making our lifes unnecessarily hard by allowing multiple recipients in a single request in the first place. (I think it also hard for client implementations, i.e. you can't really match with error is for which recipient).
I can't reproduce this one. I guess you used userid in
Good question how does
Yeah, same as for 1. we could set a better error in the body, but I am not sure yet what to do with the status code. (Especially in the when multiple recipients are in the request).
Really? I get a 500 here as well.
Yes 207 is |
Steps:
it's not possible
Yes, sorry. I also gel 500 |
@rhafer, @ScharfViktor, |
Will that be a permanent change? And how will the webUI handle sharing with multiple recipients at the same time? Send multiple requests? |
That will stay this way until we find something related to batch processing. |
Disabled users should not be able to be share receivers. Please check that and fix if still possible. |
I'll take a look into the share with disabled user problem. I think it's a bug in the userprovider/manager |
Fix for the disabled user issue: cs3org/reva#4426 I guess we should also adapt the |
@rhafer Is the issue for sharing with a disabled user fixed? I am adding a test to cover that scenario and still we can send share invitations to disabled users. |
@grgprarup No. Unfortunately we needed to revert the original fix. I am trying to come up with a better solution. |
We (@micbar @butonic and I) had a discussion about this again. And somehow the assumption that one cannot share with a disabled user seems wrong. The main driver of the "disable user" feature was to temporary forbid a user to use @grgprarup For the tests that means sharing with a disabled user is allowed to succeed when using the new sharing API. However, while digging into this I found some pretty inconsistent behavior in the CS3 users API (the LDAP driver specifically) with regards to the enabled/disabled state of users. (I'll open up a separate issue to discuss that). |
log:
libre.graph.recipient.type
in the body - 500СС @rhafer
The text was updated successfully, but these errors were encountered: