CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs

/query Hard Crash

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue OSS
Dominant language
JavaScript
Stars
3
Forks
6
Avg merge
1h 25m
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.