Page MenuHomePhabricator

XNAT file upload fails when adding a new subject using MITK
Closed, ResolvedPublic

Description

If you create a new subject using the MITK XNAT Tree Browser and upload data to Resources folder, the workbench crashes

Steps to reproduce:

  • Open MITK and connect to XNAT
  • Rightclick on any XNAT Project and select "Create new subject"
  • Add a new subject
  • Drag&Drop any data (in my case *.nii.gz) to the Resources folder from the new subject
  • MITK asks you to enter a folder name, specify one (the default "data" is fine)
  • MITK will show an message indicating that an error occurred with the following details: "ctkRuntimeException: Http request failed. 302: Error downloading https://<XNAT-SERVER>/data/archive/projects/<SAMPLEPROCJECT>/subjects/<SAMPLESUBJECT>/resources/resources/data?label=data&xsi:type=xnat:resource - server replied: Bad Request"

Event Timeline

Additional comment: The described problem only occurs when dropping the data on a "Resource"-Folder. When dropping it on the subject itself, there is no problem.