Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-6571

XARImporter looses folder structure for scan xar uploads when only one directory is uploaded

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • None
    • Importer
    • None
    • Rank:
      0|ii1vlr:

    Description

      If the XARImporter is used to upload scan files for a ImagingSession scan and the uploaded folder structure looks like:

      Scan: ID = 0-MR1

      SCAN Uploaded XML Resource URI: 0/DICOM/scan_0-MR1_secondary_catalog.xml

      Uploaded folder structure
      0/DICOM/<FILES HERE>

      XAR Importer Arcived folder structure:

      SCANS/0-MR1/DICOM

      The parent folder 0 of subfolder DICOM is lost and the catalog URI does not refer to any files.

      Fix involves modifying line 393 of

      org.nrg.xnat.restlet.actions.XarImporter

      call to child.getName() should change:

      FileUtils.MoveDir(child, new File(dest,child.getName()), true);

      This affects Xsync sync

      Attachments

        Issue Links

          Activity

            People

              kate@radiologics.com Kate Alpert
              mohanakannan9@gmail.com Mohana Ramaratnam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: