Summary: | route /studies doesn't implement POST to create new dicom | ||
---|---|---|---|
Product: | Orthanc | Reporter: | Sébastien Jodogne <s.jodogne> |
Component: | Orthanc Core | Assignee: | Sébastien Jodogne <s.jodogne> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | --- | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | 2640582871-Insomnia2.JPG |
Description
Sébastien Jodogne
2020-06-29 15:16:58 CEST
[BitBucket user: Sébastien Jodogne] [BitBucket date: 2020-06-19.05:33:42] You are mixing the Orthanc REST API and the DICOMweb plugin. The DICOMweb API is by default accessible at the URI "/dicom-web/". But, you are using "/studies" that is outside of the scope of DICOMweb. As a consequence, to access the STOW-RS API, you must refer to "/dicom-web/studies" instead of "/studies". [BitBucket user: Luis Mejía] [BitBucket date: 2020-06-19.12:16:07] No sr, I'm not using studies outside of DicomWeb May be I misstated my question... I'm using /dicom-web/studies wich gives me method not allowed when posting. The only reason I started using /instances outside of the dicom-web is because /dicom-web/studies doesn't let me post. See attached screenshot. \(content-type header is application/dicom\) ![](2640582871-Insomnia2.JPG) Same requests work just fine in other DICOMWeb implementations like Google Healthcare. Created attachment 113 [details]
2640582871-Insomnia2.JPG
[BitBucket user: Sébastien Jodogne] [BitBucket date: 2020-06-26.07:22:40] Please check out the logs of Orthanc. I’m pretty sure you’ll find the following error message: `Unsupported media type: The STOW-RS server expects a multipart body in its request` This error indicates the fact that you don’t provide your DICOM file in a multipart body, which is not compliant with STOW-RS in DICOMweb \(this is proprietary extension\). I however agree that receiving the 405 HTTP status is an issue. This is fixed by the following changeset: https://hg.orthanc-server.com/orthanc/rev/4cd94ed75a5b With this changeset, here is the result of an invalid query on “/dicom-web/studies”: ``` $ curl -u orthanc:orthanc http://localhost:8042/dicom-web/studies -X POST -d '' { "HttpError" : "Unsupported Media Type", "HttpStatus" : 415, "Message" : "Unsupported media type", "Method" : "POST", "OrthancError" : "Unsupported media type", "OrthancStatus" : 3000, "Uri" : "/dicom-web/studies" } ``` |