Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.1
    • Fix Version/s: 3.2, 3.1
    • Component/s: Tool Survey
    • Labels:
      None

      Description

      I believe this bug has to do with the recent hibernate changes.

      See video and exception text attached.
      1. exception-text.txt
        11 kB
        Ernie Ghiglione
      2. survey-authoring-exception.mp4
        973 kB
        Ernie Ghiglione

        Activity

        Hide
        fionam Fiona Malikoff added a comment -
        Two issues found and addressed:

        When I created a condition and did the repeated save I was able to reproduce this error. The lazy=false / eager loading had been removed when converting to Hibernate annotations.

        But when a condition was deleted an issue arose with it trying to delete the related question(s) and hence throwing a "deleted object will be resaved" error. The questions need to be kept. As the condition relationship is unusual (linking the object to a shared core table) the easiest way was to clear the link to the question so that it doesn't try to delete the question.

        Tested on master. Change copied to develop but not tested.
        Show
        fionam Fiona Malikoff added a comment - Two issues found and addressed: When I created a condition and did the repeated save I was able to reproduce this error. The lazy=false / eager loading had been removed when converting to Hibernate annotations. But when a condition was deleted an issue arose with it trying to delete the related question(s) and hence throwing a "deleted object will be resaved" error. The questions need to be kept. As the condition relationship is unusual (linking the object to a shared core table) the easiest way was to clear the link to the question so that it doesn't try to delete the question. Tested on master. Change copied to develop but not tested.
        Hide
        ernieg Ernie Ghiglione added a comment -
        Thanks Fiona.
        Show
        ernieg Ernie Ghiglione added a comment - Thanks Fiona.

          People

          • Assignee:
            fionam Fiona Malikoff
            Reporter:
            ernieg Ernie Ghiglione
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development