Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-478

NPE if a delegating resource doesn't have a top-level uuid property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.8
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      If a resource doesn't have a top-level "uuid" property, and it has a self link, then you'll get an error like this:

      Caused by: java.lang.RuntimeException: Cannot find String uuid property on class org.openmrs.module.ebolaexample.WardBedAssignments
      

      (In this case I actually have a @PropertyGetter("uuid") method on the resource, so it should be picked up.)

        Attachments

          Activity

            People

            • Assignee:
              darius Darius Jazayeri [X] (Inactive)
              Reporter:
              darius Darius Jazayeri [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: