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

FormService.saveFormResouce doesn't effectively replace existing resources

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • OpenMRS 1.9.0
    • OpenMRS 1.9.3
    • None

    Description

      If a user adds a form resource with a name 'x' and then later tries to replace it with a new value but same resource name 'x', it fails with an error message 'that the resource name is a duplicate entry for the form', which is technically true. However, the logic in FormResource.saveResource ineffectively attempts to replace it by first deleting the existing one which fails because the deleted object is still hanging around in the hibernate session.

      Gliffy Diagrams

        Attachments

          Activity

            People

              lluismf Lluis Martinez
              wyclif Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h