Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-420

Spurious "Failed compare revisions" error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.82.2
    • 9.82.1
    • XML
    • None
    • Unknown

    Description

      The following log is sometimes seen:

      Failed compare revisions [{}] and [{}], revisions might be in the wrong order. This should not happen.
      

      The "This should not happen." part is wrong: the log is reached when comparing two identical versions, which is a normal thing to happen.
      At this point, the code returns the result of comparing the revision strings, which correctly results in 0.

      If we end up in this part because some comparison failed, we will already have another error and the string comparison between the revisions will be the best thing to do. Actually, the spurious log is a leftover from when the code wasn't supposed to be reached unless in this "broken" case.

      Attachments

        Activity

          People

            rjakse Raphaël Jakse
            rjakse Raphaël Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: