Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9141

Sort attachments by filename when exporting XARs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.1-milestone-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When exporting the XML serialization of a document in a XAR, attachments are printed in the order they happen to be retrieved from the database, which isn't always fixed. This means that when trying to commit an updated document with many attachments, most of the changes will just be attachment reordering instead of actual changes. To fix this, attachments in the XML export should have a predictable order.

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: