API Dicom download for phantoms: add missing candID#3787
API Dicom download for phantoms: add missing candID#3787driusan merged 2 commits intoaces:20.0-releasefrom
Conversation
johnsaigle
left a comment
There was a problem hiding this comment.
Makes sense! Did not test.
|
If memory serves the MySQL PDO driver (at least used to?) throw an exception/crash if the prepared statements parameters didn't match up with the array passed (size, order, etc), so needs to be tested.. |
@xlecours |
|
@MounaSafiHarab You are right about line 118. Scratch my comment :) |
|
@davidblader @cmadjar |
|
Looks good to me. Was able to retrieve the appropriate tar file after incorporating the changes. |
cmadjar
left a comment
There was a problem hiding this comment.
Currently on 20.0-release branch, accessing DICOMs for phantom datasets fails. This PR fixes the bug and we can get the DICOMs for phantom datasets now (as well as download them).
So basically, all good!! :)
The API DICOM download was missing the CandID for the phantom cases, so add it in order for the query to get all its needed parameters, and therefore for the download to work.
To test, please try to download a DICOM from a phantom scan (with an existing .tar file in your tarchive directory) before and after this PR change.
Thanks to Mark Pratti for reporting this bug while testing this feature!