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

    XMLWordPrintable

Details

    • Bug
    • Status: Ready for Work
    • Must
    • Resolution: Unresolved
    • Platform 2.0.0
    • None
    • None
    • 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.

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              bharatak Bharat Akkinepalli
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: