There is no proper messages for users with 'read restricted Atlas Users' role if an object is unavailable

Aperta
#2,324 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
authorization

Direzione di ricerca

Non viene indicato alcun file o test. Riproduci il caso cohort pathways con un utente che abbia il ruolo “read restricted Atlas Users” ma non abbia accesso all’oggetto, quindi traccia la risposta relativa ai permessi e il percorso di rendering di PLP. Il lavoro è completato quando gli oggetti non autorizzati mostrano un messaggio chiaro sui permessi invece di una schermata vuota o di accesso alla funzionalità, e PLP non risulta visivamente compromesso.

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

Descrizione

security
Expected behavior

If a user with 'read restricted Atlas Users' role tries accessing an object they do not have read or write permissions, the user should get a proper message on the screen (e.g. "You do not have permissions to access this object")

Actual behavior

No messages at all (empty screen) or message about unavailable feature (You do not have access to this feature. For more information on how to get access please contact the System Administrator) which is not true. For PLP the page looks broken (there are design blocks but they are empty, no labels, no icons etc.)

Steps to reproduce behavior
  1. user1 creates an object (for example, a cohort pathways analysis)
  2. user2 has 'read restricted Atlas Users' role
  3. user2 does not have read or write access to the object from the step 1, but does have permissions to this type of objects (e.g. cohort pathways)
  4. user2 tries opening the object from the step 1
Lingua principale
Java
Stelle
153
Fork
186
Merge medio
2g 20h
PR unite (30g)
13

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 OHDSI/WebAPI

Tutte le issue di OHDSI/WebAPI

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.