Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

401 responses on filtered page for anonymous user

Đang mở
#6,055 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@alexklbuckley đang làm issue này rồi.

Từ ngày 5/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

authentication: general bug code task error handling

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 https://github.com/DSpace/dspace-angular/issues/5931, fix is here: https://github.com/DSpace/dspace-angular/pull/5932

Ngôn ngữ chính
TypeScript
Star
180
Fork
577
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
134

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DSpace/dspace-angular

Tất cả issue của DSpace/dspace-angular

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.