This issue has been created
 
 
Confluence / cid:jira-generated-image-avatar-2aafc8ce-1e4e-4f5b-ae46-a681de99d348 CONFLUENCE-376 Open

Robust handling of attachment version comparison

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fccf1ff0-e765-4060-a19b-75617158125f Raphaël Jakse created this issue on 20/Jan/25 17:57
 
Summary: Robust handling of attachment version comparison
Issue Type: cid:jira-generated-image-avatar-2aafc8ce-1e4e-4f5b-ae46-a681de99d348 Bug
Affects Versions: 9.75.0
Assignee: Unassigned
Components: XML
Created: 20/Jan/25 17:57
Priority: cid:jira-generated-image-static-major-7fec2ec8-9c5f-43da-9ce6-e231d3e2ccdb Major
Reporter: Raphaël Jakse
Description:

We've had a null pointer exception because of a missing date in an attachment object;
We shall keep:

  • the original version attachment, which has an historical version
  • or the attachment with the highest revision
  • or the attachment with the highest date
  • or the attachment with the highest id (but this one wouldn't matter if the dates and revisions are equal anyway)