This issue has been created
There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-2c7f7e6c-417b-43e4-9aac-c3b6d2f57074 CONFLUENCE-420 Open

Spurious "Failed compare revisions" error

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b6924417-efed-4bcd-842a-b59a172bdc86 Raphaël Jakse created this issue on 31/Mar/25 08:53
 
Summary: Spurious "Failed compare revisions" error
Issue Type: cid:jira-generated-image-avatar-2c7f7e6c-417b-43e4-9aac-c3b6d2f57074 Bug
Affects Versions: 9.82.1
Assignee: Unassigned
Components: XML
Created: 31/Mar/25 08:53
Priority: cid:jira-generated-image-static-major-f653959b-763e-4d73-92cb-29a8a07f2bef Major
Reporter: Raphaël Jakse
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.

 
 

1 update

 
cid:jira-generated-image-avatar-b6924417-efed-4bcd-842a-b59a172bdc86 Changes by Raphaël Jakse on 31/Mar/25 08:54
 
Assignee: Raphaël Jakse