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
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Empieza por platform-core/ui/platform/shell.js, en el controlador de rechazo de getExports() de la directiva del encabezado, y comprueba cómo LocaleService.onInit desencadena la solicitud. El issue indica el comportamiento esperado: un Developer que abra el IDE no debería ver un cuadro de diálogo de error por el 403 esperado. Verifica el cambio abriendo la shell como Developer y confirmando que el cuadro de diálogo ya no bloquea el IDE.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 278
- Forks
- 97
- Merge medio
- 16 h 39 min
- PR fusionados (30 d)
- 282
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-dirigible/dirigible
-
ui: opening a row's "..." menu leaves the other rows' menus open - @click.stop on the row-actions cell keeps the click from closing themPosiblemente ocupada @NicoleNG18 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eclipse-dirigible/dirigible#8259 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-dirigible/dirigible#8238 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eclipse-dirigible/dirigible#8232 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-dirigible/dirigible#8231 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eclipse-dirigible/dirigible#8226 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-dirigible/dirigible
Issues similares
-
bug web-server
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jooby-project/jooby#4035 ·
Los mantenedores suelen responder en 1 día
-
L: javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dependabot/dependabot-core#16744 ·
Los mantenedores suelen responder en 1 día
-
intake mcp-intake needs-human-review priority:high type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Ikalus1988/MisakaNet#3987 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quarkiverse/quarkus-google-cloud-services#1187 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
locationtech/jts#1250 ·