Skip to content

401 responses on filtered page for anonymous user #6055

Description

@tinsch

Describe the bug

When I visit a browse by page (eg. https://demo.dspace.org/browse/dateissued?bbm.page=1&startsWith=2023) and open the developer tools, I see multiple requests that result in 401 responses. I assume they are related to features only an admin should be able to access. These requests should not be made, there should be a check in place that only authorized users fire these requests.

Image

Failing requests were observed on these paths:
/server/api/system/scripts/metadata-import
/server/api/system/scripts/metadata-export

The bug is present in both DSpace 9.3. and 10.

To Reproduce

Steps to reproduce the behavior:

  1. Open https://demo.dspace.org/browse/dateissued?bbm.page=1&startsWith=2023 as an anonymous user
  2. Open the dev tools and the console or network tab and observe the failed requests

Note: This does not happen everytime, likely because of a race condition with observables in the frontend code. Just try it out several times.

Expected behavior

When visiting browse-by pages as an anonymous user, I don't encounter 401 errors/responses.

Related work

Similar to #5931, fix is here: #5932

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions