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
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
- Create a user with only the Developer role:
POST /services/security/users {"username":"dev1","password":"...","tenant":"default-tenant","roles":["<DEVELOPER role id>"]}-> 201 - Open
/services/web/shell-ide/in a browser asdev1.
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
adminthe 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-dirigible/dirigible
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-dirigible/dirigible#8291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eclipse-dirigible/dirigible#8238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eclipse-dirigible/dirigible#8232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-dirigible/dirigible#8226 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
eclipse-dirigible/dirigible#8223 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-dirigible/dirigible
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue priority: low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
Gautam-aman/CODOVYN#52 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
ControlSystemStudio/phoebus#3998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug/错误
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
FCL-Team/FoldCraftLauncher#1982 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày