hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Proxy deposits can not be viewed: "unauthorized" error

Open eporter23 opened this issue 1 year ago • 0 comments

Descriptive summary

This ticket relates to a prior issue noted in #6883. While that behavior seems to no longer recur, a new issue is occurring when a work has been deposited on behalf of another user, that Work appears in "My Works", but returns an "Unauthorized" error when trying to access it.

Steps to reproduce the behavior in User Interface (UI)

See the QA testing worksheet for steps W_1.15 and W_1.8.

  1. Set another user as a proxy (see test W_1.8)
  2. The proxy user should navigate to the "Works" page and select “Add new work” button
  3. Select "Generic work" and click the "Create work" button.
  4. Fill out the required fields in the "Descriptions" tab and upload a file in the "Files" tab.
  5. In the "Save Work" panel, the Heading "On Behalf of" with drop down menu appears
  6. Select another user on whose behalf the work is being deposited
  7. Check the "Deposit Agreement" box and click the "Save" button
  8. Log in as the other user: navigate to Dashboard > Works > My Works
  9. New user can see the Work in My Works, but cannot perform actions on "Work" or files

Actual behavior (include screenshots if available)

Include what version of Hyrax relates to this issue (3.x, 4.x, main branch, etc.) if appropriate, and any relevant error messages/tracebacks if you're reporting a bug.

Sirenia docker image - valkyrie_fedora_fix branch

Acceptance Criteria/Expected Behavior

  • [ ] When a deposit has been made on behalf of a user, they should be able to view and edit and perform other actions on that Work and its files

Rationale (for feature request only)

Provide the rationale or user story that describes "why" this issue should be addressed. Especially if this is a new feature or significant change to the existing implementation.

Parity with current functionality

Related work

Link to related issues or prior related work here.

May relate to prior issues noted in #6883

eporter23 avatar Sep 11 '24 13:09 eporter23