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

ECAT studies (non-catalog resources) cannot be deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.8.1, 1.8.0.1, 1.8.2
    • 1.8.4
    • None
    • Rank:
      0|ii1z2f:

    Description

      I've verified that this happens on 1.8.0.1, 1.8.1, and 1.8.3-SNAPSHOT. When you import an ECAT study with the default importer (SI), XNAT stores it in a bit of a strange resource structure. It seems that XNAT then has problems when you try to delete it. If you try to delete a session like this, XNAT reports success, but you can refresh the page to see that it didn't do anything. Steps to recreate:

      First, import an ECAT study via SI. Shortcut method:

      1. Use XNAT Populate to add the ecat_Arc collection.

      Manual method:

      1. Download https://download.nrg.wustl.edu/pub/data/xnat_populate/ecat_Arc.zip .
      2. Unzip the downloaded archive.
      3. Find e408000.zip within the expanded archive, and upload it to XNAT via the compressed uploader.

      Once you have your ECAT session in XNAT, attempt to delete the session via the UI.

      Corresponding stack trace:

      2021-07-29 20:22:41,916 [http-nio-8080-exec-14] ERROR org.nrg.xdat.om.base.auto.AutoXnatImagesessiondata -
      java.lang.UnsupportedOperationException: null
              at java.util.AbstractCollection.add(AbstractCollection.java:262)
              at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
              at org.nrg.xdat.om.base.BaseXnatResource.getCorrespondingFilesWithCatEntries(BaseXnatResource.java:95)
              at org.nrg.xdat.om.base.BaseXnatAbstractresource.deleteFromFileSystem(BaseXnatAbstractresource.java:234)
              at org.nrg.xdat.om.base.BaseXnatAbstractresource.deleteWithBackup(BaseXnatAbstractresource.java:226)
              at org.nrg.xdat.shared.OmUtils.deleteResourceFiles(OmUtils.java:59)
              at org.nrg.xdat.om.base.BaseXnatImagesessiondata.deleteFiles(BaseXnatImagesessiondata.java:3067)
              at org.nrg.xdat.om.base.BaseXnatImagesessiondata.delete(BaseXnatImagesessiondata.java:3025)
              at org.nrg.xnat.restlet.resources.SecureResource.deleteItem(SecureResource.java:1693)
              at org.nrg.xnat.restlet.resources.SubjAssessmentResource.handleDelete(SubjAssessmentResource.java:580)
      

      Attachments

        Issue Links

          Activity

            People

              kate@radiologics.com Kate Alpert
              moore.c@wustl.edu Charlie Moore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: