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

Deleting a user breaks personal shares #6730

Closed
wkloucek opened this issue Jul 3, 2023 · 16 comments
Closed

Deleting a user breaks personal shares #6730

wkloucek opened this issue Jul 3, 2023 · 16 comments
Labels
Priority:p3-medium Normal priority Severity:sev3-medium minor loss of usage, workaround available Type:Bug

Comments

@wkloucek
Copy link
Contributor

wkloucek commented Jul 3, 2023

Steps to reproduce

  1. share a file with two persons
  2. delete one share receiver
  3. restart oCIS to clear caches
  4. try to edit the personal share of the leftover person / share the file to another person

Expected behaviour

I can edit the personal share / share the file to another person

Actual behaviour

I can no longer see the personal sharing section on that file

image

Environment general

oCIS-3.1.0-next.2 with Web 7.0.1

Additional information

originally reported in https://github.com/owncloud/enterprise/issues/5828#issuecomment-1614935038

@wkloucek
Copy link
Contributor Author

wkloucek commented Jul 3, 2023

@micbar I'm not fully sure if this can be handled on Web UI side only. Maybe the API should not return data about users that are gone in the first place?

@micbar
Copy link
Contributor

micbar commented Jul 3, 2023

We need a severity and prio

@wkloucek wkloucek added Severity:sev3-medium minor loss of usage, workaround available Priority:p3-medium Normal priority labels Jul 3, 2023
@AlexAndBear AlexAndBear self-assigned this Jul 6, 2023
@AlexAndBear AlexAndBear transferred this issue from owncloud/web Jul 6, 2023
@AlexAndBear
Copy link
Contributor

As spoken with @butonic, the share shouldn'be exposed via the api, so transfering this to ocis and closing my pr

@AlexAndBear AlexAndBear removed their assignment Jul 6, 2023
@AlexAndBear AlexAndBear moved this from Qualification to Prio 3 or less in Infinite Scale Team Board Jul 6, 2023
@2403905 2403905 self-assigned this Jul 31, 2023
@micbar
Copy link
Contributor

micbar commented Jul 31, 2023

as spoken with @butonic he changed his mind 😄

@butonic

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Jul 31, 2023

@micbar @butonic
can you guys give me an update :D ?
I can fix the problem in web as well

https://github.com/owncloud/web/pull/9355/files

@butonic
Copy link
Member

butonic commented Jul 31, 2023

@2403905 pinged me as well. @micbar had a code change that when a user is not found returnes the user uuid as username and 'user unknown' or 'group unknown' as the display name.

The reason for that was that users might be disabled ... should we then hide the recipient? will it be returned by the user provider? should it have a disabled flag? then we also would need to expose that in the ocs api ...

if there was a problem resolving the recipient for a share ... the user might come back ... so we should not hide it.

If it cannot come back we should have deleted the share. Now end users can at least clean up shares for users that no longer exist ...

Why not hide the user? because it might just be a temporery error ... and currently there is no way in the ocs api to return a list of shares and mark one of the share as: 'temporary error' ... at least clients woult then have a clean way of deciding wether or not to show the share ...

@AlexAndBear
Copy link
Contributor

So there should be no error anymore, or is there a pr I should check working in conjunction with the web?

@butonic
Copy link
Member

butonic commented Jul 31, 2023

@micbar Is there a PR?

@micbar
Copy link
Contributor

micbar commented Aug 1, 2023

@tbsbdr @butonic We need to clarify expectations first.

Should the user see "stale" shares to be able to remove them? Or should we filter them out on the server side?

@2403905 2403905 removed their assignment Aug 1, 2023
@tbsbdr
Copy link

tbsbdr commented Aug 1, 2023

stale shares should not be shown in the frontend; I assess that showing stale shares would be more an information overload rather than a information gain for a regular user. lets keep it simple.

@2403905
Copy link
Contributor

2403905 commented Aug 2, 2023

@tbsbdr Should we filter out the list on the backend or the frontend side?

@tbsbdr
Copy link

tbsbdr commented Aug 2, 2023

@butonic said "on the backend" so that we dont break oc10. generally: this decision is up to you as I don't see major end-user facing implications. so mainly technical decision i guess. or: from my side no objections against filtering in the backend

@butonic
Copy link
Member

butonic commented Aug 2, 2023

we are going to filter on the server side

@2403905
Copy link
Contributor

2403905 commented Aug 2, 2023

The reva PR cs3org/reva#4096
This issue also was relevant if we delete the group.

@2403905 2403905 moved this from Prio 3 or less to Needs Tests in Infinite Scale Team Board Aug 4, 2023
@2403905 2403905 moved this from Needs Tests to In progress in Infinite Scale Team Board Aug 4, 2023
@wkloucek
Copy link
Contributor Author

wkloucek commented Sep 5, 2023

@2403905 is this fixed in oCIS 4.0.1?

@rhafer
Copy link
Contributor

rhafer commented Sep 20, 2023

fixed in 4.0.1

@rhafer rhafer closed this as completed Sep 20, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in Infinite Scale Team Board Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p3-medium Normal priority Severity:sev3-medium minor loss of usage, workaround available Type:Bug
Projects
Archived in project
7 participants