Skip to content

"Shared Submissions" feature on MyDSpace is sharing too many submissions #5384

@tdonohue

Description

@tdonohue

Describe the bug

This issue was found during testing of #5145, the PR which adds this new "Shared Submissions" option to Collections and MyDSpace.

When visiting the "Shared Submissions" option in a user's MyDSpace page, submissions which are not shared also appear in the list.

To Reproduce

Steps to reproduce the behavior:

  1. Login as an Admin
  2. Create a single Collection with the "Shared Workspace" option enabled.
  3. Add one other user as a Submitter to that Collection (you'll use this user later)
  4. Start one submission into that Collection. Save it for later.
  5. Logout and login as the Submitter you created in step 3
  6. Go to that user's MyDSpace page and select "Shared Submissions" from the dropdown.
  7. You should only see one shared submission (the one started in step 4). However, you will see many more than expected. (It almost appears like every in progress submission from the Admin user has been shared)
  8. Even worse it appears that it's possible to edit any of the "Shared Submissions". So, you've been given access to edit Submissions that you should not be allowed to access.

Expected behavior

Obviously, you should only be able to see/edit shared submissions which belong to a "Shared Workspace" collection.

Related work

This "Shared Submissions" feature was introduced in #5145.

Metadata

Metadata

Assignees

Labels

DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.affects: mainIssue impacts "main" (latest release).authorizationrelated to authorization, permissions or groupsblockerThis ticket or PR will block whatever release milestone is associated with it.bugsecuritySecurity related fix

Type

Projects

Status

📋 To Do

Status

📋 To Do

Relationships

None yet

Development

No branches or pull requests

Issue actions