Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4956

ObsGroup is set as an immutable property on Obs that cannot be changed, but we are marking it null in obs.removeObsGroup

    Details

    • Type: Bug
    • Status: Ready for Work
    • Priority: Must
    • Resolution: Unresolved
    • Affects Version/s: Platform 2.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Complexity:
      Medium

      Description

      Seen this error in logs while updating an existing obs. An APIException is thrown while updating an obs by removing its child and saving it.

      DEBUG - AuditableInterceptor.setCreatorAndDateCreatedIfNull(108) |2016-10-08 17:44:19,190| Setting creator and dateCreated on Obs #101
      DEBUG - AuditableInterceptor.onFlushDirty(82) |2016-10-08 17:44:19,198| Setting changed by fields on class org.openmrs.Obs
      DEBUG - ImmutableEntityInterceptor.onFlushDirty(109) |2016-10-08 17:44:40,427| The following fields cannot be changed for class org.openmrs.Obs:[obsGroup]
      

      I can add a detailed testcase if required. Logging it for now.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bharatak Bharat Akkinepalli
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: