Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-5778

Moving a review between projects fails when the default moderator of the destination project is the same as the current moderator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.5.7, 2.6.1
    • 2.5.6
    • None
    • None

    Description

      This occurs because of two defects:

      1. If no allowed reviewers are specified in the destination project (i.e. there is no restriction) we assume that the current moderator is not allowed to moderate in the new project, and attempt to replace them with the default moderator from the noew project. In fact we should not change the moderator, as no restriction is in force in the new project.

      2. When we change moderators we don't check to see if the old and the new moderators are the same user – we remove the old and add the new regardless. For some reason Hibernate does not issue the SQL to remove the old moderator, and so the same user appears twice as a participant on the review, causing a constraint vialoation.

      Attachments

        Activity

          People

            tom@atlassian.com Tom Davies
            tom@atlassian.com Tom Davies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: