Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le 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

Aperta Adatta ai principianti
#8,240 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Inizia da platform-core/ui/platform/shell.js, nel gestore del rifiuto di getExports() della direttiva dell’intestazione, e controlla come LocaleService.onInit attiva la richiesta. L’issue indica il comportamento previsto: un Developer che apre l’IDE non dovrebbe visualizzare una finestra di dialogo di errore per il 403 previsto. Verifica la modifica aprendo la shell come Developer e confermando che la finestra di dialogo non blocca più l’IDE.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
278
Fork
97
Merge medio
16h 27m
PR unite (30g)
264

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-dirigible/dirigible

Tutte le issue di eclipse-dirigible/dirigible

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.