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

Can't get assessor resources with internal APIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.6
    • Component/s: Resources, REST
    • Labels:
      None
    • Rank:
      0|ii1mva:r

      Description

      PROBLEM

      I have created an assessor (an icr:roiCollectionData), and added a resource. I can verify that the resource is there using the REST API: /data/experiments/(session id)/assessors/(assessor id)/resources. But every way I try to get the assessor's resources fails with my plugin code running inside XNAT, in that I get back an empty list of resources. But I know at least one resource exists.

      DETAIL

      I have tried to make an org.nrg.xdat.om.XnatImageassessordata in the following ways:

      Use the assessor ID directly.

      XnatImageassessordata.getXnatImageassessordatasById(assessorId, userI, true)
      

      Use the assessor's archive URI in the form /archive/experiments/(sessionId)/assessors/(assessorId)

      ((AssessorURII) UriParserUtils.parseURI("/archive/experiments/"+sessionId+"/assessors/"+assessorId)).getAssessor()
      

      Use the assessor's archive URI in the form /archive/experiments/(assessorId)

      ((XnatImageassessordata) ((ExptURI) UriParserUtils.parseURI("/archive/experiments/"+assessorId)).getExperiment())
      

      Every way I try to do this, I get an empty list of assessor resources back when I run

      xnatImageassessordata.getResources_resource()
      

        Attachments

          Activity

            People

            Assignee:
            kelseym@wustl.edu Matt Kelsey
            Reporter:
            jflavin@wustl.edu John Flavin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 2 hours
                2h