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

The IDE opens for a Developer-only user with a 'Could not get export list' error dialog, because the shell polls the export list the Developer role may not read

Đang mở Phù hợp với người mới
#8,240 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với platform-core/ui/platform/shell.js, trong trình xử lý từ chối của getExports() thuộc chỉ thị phần đầu trang, và kiểm tra cách LocaleService.onInit kích hoạt yêu cầu. Issue nêu hành vi mong đợi: Developer khi mở IDE sẽ không thấy hộp thoại lỗi cho mã 403 đã được dự kiến. Xác minh thay đổi bằng cách mở shell với tư cách Developer và xác nhận hộp thoại không còn chặn IDE.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Images

  • Image: dirigiblelabs/dirigible:15.1.0-java (sha256:dac354be94f21f222e88b81fd7fc6e68d9616ee7b4e12bcb1e9eef0465bd213f)
  • Reference: dirigiblelabs/dirigible:15.1.0 (sha256:449b8c948738a2bd7a4294a7bec1000a08bc1da1cd20f312f0e54383a7af325d) - same behaviour on both

Steps

  1. Create a user with only the Developer role: POST /services/security/users {"username":"dev1","password":"...","tenant":"default-tenant","roles":["<DEVELOPER role id>"]} -> 201
  2. Open /services/web/shell-ide/ in a browser as dev1.

Observed

  • The shell requests GET /services/data/export-async/ on boot -> 403 {"status":403,"error":"Forbidden","message":"Forbidden","path":"/services/data/export-async/"}
  • Console: Failed to load resource: the server responded with a status of 403 () and {data: Object, status: 403, ...}
  • A modal error alert "Could not get export list - Please check the console log for more information." covers the IDE on every shell load; perspective buttons cannot be clicked until it is closed.
  • As admin the same request answers 200 and no dialog appears.

Expected

A Developer opens the IDE without an error. The 403 is correct (export/import are ADMINISTRATOR + OPERATOR, see the HttpSecurityURIConfigurator javadoc, which also keeps the Database perspective's tools open to "the developers it was built for"), so the shell header should not poll the export list for a user who may not export, or should treat a 403 as "no exports" silently.

Where

platform-core/ui/platform/shell.js, the header directive's getExports() (called from LocaleService.onInit): its rejection handler shows dialogHub.showAlert({type: Error, title: "Could not get export list"}) for any failure, including 403.

Evidence

Screenshot of the IDE as the Developer user with the dialog over the Workbench; the request and console lines above were captured from the browser on both images.

Ngôn ngữ chính
Java
Star
278
Fork
97
Merge trung bình
15 giờ 45 phút
Pull request đã merge (30 ngày)
302

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 eclipse-dirigible/dirigible

Tất cả issue của eclipse-dirigible/dirigible

Issue tương tự

Thêm issue về Java

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.