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

Can't access attachment after removing latest version of page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.4.3, 6.4.5, 8.0, 10.5
    • Fix Version/s: 10.7-rc-1, 9.11.8
    • Component/s: Old Core
    • Labels:
      None
    • Environment:
      Windows 7
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Can someone please reproduce these steps?

      First prepare 2 documents for upload. Let's say 2 MSWord documents, A.doc and B.doc.

      1) Create a new page, enter some text
      2) Upload A.doc
      3) Remove A.doc
      4) Upload B.doc
      5) Rollback the version where you uploaded A.doc (should be version 2.1)
      6) Delete the latest version of the page (this should take you back to version 4.1 where you uploaded B.doc)

      Examine the attachments page:
      It will show A.doc and B.doc (which in my opinion is strange, because I would expect to only find B.doc).

      Try to open A.doc (this is possible), now try to open B.doc (this is NOT possible).

      What I would have expected:

      Deleting the last version of the page should take be back where only B.doc was uploaded (and B.doc should be accessible).

      But now I have BOTH attachments (small bug), and B.doc is NOT accessible! (major bug!)

      See: http://xwiki.475771.n2.nabble.com/BUG-Do-the-attachments-hustle-td7589936.html

        Attachments

        1. AttachmentsIndexTab.png
          AttachmentsIndexTab.png
          151 kB
        2. attachmentsTab.png
          attachmentsTab.png
          117 kB
        3. BMissing.png
          BMissing.png
          213 kB
        4. historyTab.png
          historyTab.png
          227 kB
        5. RecycleTab.png
          RecycleTab.png
          204 kB
        6. RollbackError.png
          RollbackError.png
          1.27 MB

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                hamster Teun Ham
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: