[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2019-01-25.09:24:48]
The second part of this issue (storing an existing study to an inexistent modality, in this case "nope") is solved since at least Orthanc 1.0.0 .
```text
$ sudo docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc:1.5.2
$ curl -u orthanc:orthanc http://localhost:8042/modalities/nope/store -X POST -d '19816330-cb02e1cf-df3a8fe8-bf510623-ccefe9f5' -i
HTTP/1.1 404 Not Found
Connection: keep-alive
Content-Length: 293
{
"Details" : "No modality with symbolic name: nope",
"HttpError" : "Not Found",
"HttpStatus" : 404,
"Message" : "Accessing an inexistent item",
"Method" : "POST",
"OrthancError" : "Accessing an inexistent item",
"OrthancStatus" : 7,
"Uri" : "/modalities/nope/store"
}
``` |