Created on 2017-10-26.11:04:59 by admin, last changed by admin.
| Messages | |||
|---|---|---|---|
| msg320 (view) | Author: admin | Date: 2017-10-26.11:04:59 | |
[BitBucket user: Ben Bloom] [BitBucket date: 2017-10-26.09:04:59] ###Steps to reproduce: 1. create a dicom file with PatientID tag of length 4 or shorter 2. upload it using curl: ``` #!bash $ curl -X POST http://user:pw@domain:8042/instances --data-binary @file.dcm ``` Response is: ``` #!json { "HttpError" : "Bad Request", "HttpStatus" : 400, "Message" : "Bad file format", "Method" : "POST", "OrthancError" : "Bad file format", "OrthancStatus" : 15, "Uri" : "/instances" } ``` Note: Repeating the same steps with PatientID tag length 5 or longer results in success, for example: ``` #!json { "ID" : "9ffb11eb-ade5d153-cd0beb7b-c565e56e-4a04db04", "Path" : "/instances/9ffb11eb-ade5d153-cd0beb7b-c565e56e-4a04db04", "Status" : "Success" } ``` ### Environment * Ubuntu 16.04.2 * Orthanc: 1.3.0+dfsg-1+b1 |
|||
| msg321 (view) | Author: admin | Date: 2017-10-26.12:37:31 | |
[BitBucket user: Sébastien Jodogne] [BitBucket date: 2017-10-26.10:37:31] Please provide your "file.dcm" so that we can reproduce this issue. |
|||
| msg322 (view) | Author: admin | Date: 2017-10-26.13:53:40 | |
[BitBucket user: Ben Bloom] [BitBucket date: 2017-10-26.11:53:40] I found that there was an additional difference in the file, namely, there were two extra bytes at its tail. Removing these bytes seems to resolve the issue. First, let me apologize for the false alarm. And then, I think the issue may be closed as "not a bug". Thanks! |
|||
| msg323 (view) | Author: admin | Date: 2017-10-26.14:08:59 | |
[BitBucket user: Sébastien Jodogne] [BitBucket date: 2017-10-26.12:08:59] Fine, closing now. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-07-29 15:51:21 | admin | create | |