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

Sort attachments by filename when exporting XARs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 5.1-milestone-1
    • 5.0.1
    • Old Core
    • None
    • Trivial
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: