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

Subject REST call incorrectly serializes xsi type of subject assessors when multiple types exist

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.7.6, 1.8.2, 1.8.3, 1.8.2.2
    • 1.8.4
    • None
    • XNAT 2021-Q4 Sprint 1
    • Rank:
      0|0hzycd:zzzr052
    • XNAT 2021-Q4 Sprint 1

    Description

      To recreate this:

      1. Create a new project called TEST_PROJECT. You can also use an arbitrary project ID, you'll just need to substitute it on the REST call.
      2. Upload both attached "sessions" via the compressed uploader (they're each just 1 frame from some sample data that I've modified).
      3. Grab the JSON response for the subject at: /data/projects/TEST_PROJECT/subjects/SAMPLE_SUBJECT_NAME?format=json

      If you search for "SessionData", you will find that the entries for the sessions will either be both "xsi:type": "xnat:mrSessionData" or both "xsi:type": "xnat:petSessionData". Which one "wins" out seems to be which session type was uploaded first. If you add a non-session subject assessor at the end, it also gets called an MR/PET session in this JSON response as well.

      Attachments

        1. example_response.json
          10 kB
        2. mr.zip
          54 kB
        3. pt.zip
          13 kB

        Activity

          People

            jrherrick@wustl.edu Rick Herrick
            moore.c@wustl.edu Charlie Moore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h