CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
/query Hard Crash
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 2g 47m
- PR unite (30g)
- 4
Descrizione
A `/query` body that causes a hard crash. Can we handle this situation better? I did not look into it, just noting it.
```JSON
{
"@type":"sc:AnnotationList",
"on":{
"$or":[
{
"on":"https://iiif.library.utoronto.ca/presentation/v2/paleography:419"
},
{
"on":"https://paleography.library.utoronto.ca/islandora/object/paleography:419"
}
]
},
"isPartOf":"2888",
"__rerum.history.next":{
"$exists":true,
"$size":0
}
}
```
Yes, I know. That is now how you use $or. Still, this caused a hard 500 that did not return anything RESTful
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo la richiesta JSON fornita sull’endpoint `/query` e verifica come viene gestito l’input `$or` malformato. Segui il percorso della richiesta da quel punto di ingresso fino al crash, quindi verifica che lo stesso body produca una risposta di errore RESTful invece di un 500 non gestito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100