Hi,
Our tests just noticed a quirk with the latest docker image.
If you request the instances for a patient id (/patients/:id/instances
) that doesn’t exist, instead of returning a 404, (unknown patient) it returns an empty array ([]
).
Steps to replicate:
docker run --rm -e ORTHANC__AUTHENTICATION_ENABLED=false -p 8042:8042 orthancteam/orthanc:25.1.0
curl localhost:8042/patients
- returns[]
curl localhost:8042/patients/NOT_A_PATIENT_ID/instances
returns[]
curl localhost:8042/patients/NOT_A_PATIENT_ID
returns404
not found.
Up until a recent version, patients/:id/instances
would throw a 404 if the :id was not a valid patient id.
Is this the intended response?
Cheers,
James