nguyentantrung012 / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
1 stars 0 forks source link

Characters in PatientID string are not protected #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This will reproduce the problem:

1. Make sure there is a patient in the database with a dash in their PatientID 
string (e.g. like this default value from Siemens MRI scanners: 
{"PatientID":"15.04.13-11:29:55-STD-1.3.12.2.1107.5.2.43.67027"})

2. Perform a C-FIND SCU query for this PatientID (e.g. $ curl 
http://localhost:8042/modalities/local/find-study -X POST -d 
'{"PatientID":"15.04.13-11:29:55-STD-1.3.12.2.1107.5.2.43.67027"}')

3. The patient is not found, presumably because the dash character is not 
escaped and is being interpreted to specify a range in C-FIND.

Tested on Orthanc version 0.8.6

Original issue reported on code.google.com by mp.zwi...@gmail.com on 27 Apr 2015 at 9:00

GoogleCodeExporter commented 9 years ago
Originally reported on the Orthanc Users group:
https://groups.google.com/d/msg/orthanc-users/OuRLxM-BPpc/rmIXlMvJIVsJ

Original comment by s.jodo...@gmail.com on 28 Apr 2015 at 4:23

GoogleCodeExporter commented 9 years ago

Original comment by s.jodo...@gmail.com on 10 Jun 2015 at 11:47