DICOM-zip import handler - changes in 1.8.3 seem to be preventing upload

77 views
Skip to first unread message

Chidi Ugonna

unread,
Oct 25, 2021, 10:42:58 AM10/25/21
to xnat_discussion
Hi,
We use curl to upload Dicoms into our XNAT using the DICOM-zip import handler which has been very convenient to date.


This worked well in 1.7.6 and in 1.8.2.2 - but since upgrading to 1.8.3 I get the following output message when I do this.

<html>
<head>
   <title>Status page</title>
</head>
<body>
<h3>Unsupported format UNKNOWN</h3><p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>

The info at sec 10.4.1 reference in the output message mentions that the syntax is malformed. Am I doing something wrong in the way I set up the curl command? Thank you for any suggestions/ideas.

10.4.1 400 Bad Request

The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

Moore, Charlie

unread,
Oct 25, 2021, 11:06:39 AM10/25/21
to xnat_di...@googlegroups.com
Hello there,

Give this a try:
  1. Remove the "inbody=true" query param.
  2. Replace --data-binary @"path" with -F "file=@path"
It may also work to just set the content type explicitly, but this is how I normally use the import service.

Thanks,
Charlie

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Chidi Ugonna <chidi....@gmail.com>
Sent: Sunday, October 24, 2021 4:51 PM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] DICOM-zip import handler - changes in 1.8.3 seem to be preventing upload
 

* External Email - Caution *

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/8c1bd41d-31da-4d49-b9f3-82806ed8b726n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Chidi Ugonna

unread,
Oct 25, 2021, 11:34:38 AM10/25/21
to xnat_discussion
Hi Charlie - that worked like a charm - thank you very much!

This was my working syntax based on your suggestion.


Best
Chidi
Reply all
Reply to author
Forward
0 new messages