Skip to content
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

Problems setting sharing permissions in the webUI when user and group have same name #36813

Closed
phil-davis opened this issue Jan 23, 2020 · 7 comments · Fixed by #36766
Closed
Labels

Comments

@phil-davis
Copy link
Contributor

Steps to reproduce

  1. create user "finance" and group "finance"
  2. using the webUI, share a file or folder with both the user and then the group "finance"
  3. open the sharing permissions of both in the webUI
  4. change the sharing permissions of the group "finance"

Expected behaviour

The sharing permissions of the group change.
The sharing permissions of the user do not change.

Actual behaviour

The sharing permissions of the user change.
The sharing permissions of the group do not change.

Server configuration

current master

@phil-davis
Copy link
Contributor Author

PR #36793 demonstrates that the sharing API is OK when there is a user and group with the same name. So this is "just" a UI bug.

@phil-davis
Copy link
Contributor Author

Note: #36766 finishes the user/group share expiration date code.
That adds an expiration date field. That field ends up having the same issue as here, when sharing with a user and a group with the same name.

@phil-davis phil-davis changed the title Problems settings sharing permissions in the webUI when user and group have same name Problems setting sharing permissions in the webUI when user and group have same name Jan 23, 2020
@micbar
Copy link
Contributor

micbar commented Jan 23, 2020

@pmaier1 THis is a real annoying bug and IMO a release blocker.

@phil-davis is it a regression?

@micbar micbar changed the title Problems setting sharing permissions in the webUI when user and group have same name [OC-8] Problems setting sharing permissions in the webUI when user and group have same name Jan 23, 2020
@pmaier1
Copy link
Contributor

pmaier1 commented Jan 23, 2020

@pmaier1 THis is a real annoying bug and IMO a release blocker.

Yes, I agree. Apparently it was also the case in earlier versions.

@phil-davis
Copy link
Contributor Author

@phil-davis is it a regression?

No, it is not a regression. IMO it has been there "a long time" (TM). If you want the answer to "a long time" then maybe @davitol will have some clue, or can easily go back some releases and reproduce it.

It only happens if you have a group name that is the same as a user name, and you share some resource with both the group and the user. So that is a quite rare thing to do.

@pmaier1
Copy link
Contributor

pmaier1 commented Jan 23, 2020

So that is a quite rare thing to do.

Yeah. So not necessarily a release blocker. Could also be fixed in another patch release afterwards, IMO. Decision @micbar.

@phil-davis
Copy link
Contributor Author

Fix is in PR #36766

@micbar micbar changed the title [OC-8] Problems setting sharing permissions in the webUI when user and group have same name Problems setting sharing permissions in the webUI when user and group have same name Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants