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

Can't archive sessions to shared subject when anonymization is on

    XMLWordPrintable

Details

    Description

      To recreate:

      1. Create projects A and B
      2. Create subject A_1 in project A
      3. Share subject A_1 to project B, changing subject label to B_A_1
      4. Send session to project B and subject B_A_1
      5. Session should archive properly under project B and shared subject B_A_1
      6. Add an anon script to project B
      7. Send session to project B and subject B_A_1
      8. Session should fail to archive with message similar to Unable to identify subject for:A_1

      The shared subject is tracked in the session by project (e.g. B) and subject ID. The problem is in *MergePrearcToArchiveSession.getSubjectId(), which gets the **XnatSubjectdata* associated with the session and sets the label for that object (which is the label only in the source project) as the subject ID. It then fails when it tries to find that label in the shared project (which is why the shared subject label needs to be different from the source subject label).

      Attachments

        Activity

          People

            moore.c@wustl.edu Charlie Moore (Inactive)
            rickherrick@flywheel.io Rick Herrick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: