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

[Sharing-Ng] Sharing multiple resources by multiple users with same resource name, the name updating with suffix(1) is inconsistent #8471

Closed
Tracked by #8428
PrajwolAmatya opened this issue Feb 16, 2024 · 0 comments · Fixed by #8543
Assignees
Labels

Comments

@PrajwolAmatya
Copy link
Contributor

PrajwolAmatya commented Feb 16, 2024

Describe the bug

When two users share a resource with same name to a user, then the expected behavior is that for the sharee user, the second share should have suffix(1) in the resource name, for example, test-folder (1). In case two users share multiple resources, then there is inconsistency in the number inside the braces.

Steps to reproduce

As user marie

  1. Create a folder test-folder and a file test-file.txt in personal space
  2. Share test-folder and test-file to user einstein

As user moss

  1. Create a folder test-folder and a file test-file.txt in personal space
  2. Share test-folder and test-file to user einstein

As user einstein

  1. List the resources shared with him
curl -kv -ueinstein:relativity -XGET "https://localhost:9200/graph/v1beta1/me/drive/sharedWithMe"

Expected behavior

The second shared resources should have suffix(1) in resource name. The resources for einstein should be listed as:

test-folder
test-folder (1)
test-file.txt
test-file (1).txt

Actual behavior

Only one of the shared resource have suffix(1) but other resource have other number other than 1, like

test-folder
test-folder (1)
test-file.txt
test-file (3).txt

The number is not fixed for the resource. Sometimes it is listed as test-file (3).txt and sometimes listed as test-file (2).txt

Screenshot

Screenshot from 2024-02-16 10-17-11

@saw-jan saw-jan changed the title [Sharing-Ng] Sharing multiple resources by multiple users with same resource name, the name updating with prefix(1) is inconsistent [Sharing-Ng] Sharing multiple resources by multiple users with same resource name, the name updating with suffix(1) is inconsistent Feb 19, 2024
@2403905 2403905 self-assigned this Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants