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

Impossible to delete broken attachments

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      XWiki seems to throw an exception when trying to delete an attachment (or a deleted attachment), even if the file side of the attachment has already been deleted.

      For example, when trying to delete a file that is no longer on the filesystem but still appears as attached to a page, the delete will fail and a mention will appear with "Impossible to delete the attached file"

      Also, when checking for the same file in the deleted attachments index and trying to delete it from there as well, an error message will appear on the bottom of the page: "Impossible to delete: Server not responding"

      It first tries to get the attachment (or deleted attachment) and then delete it, however, the first part of the operation fails, so the entire operation fails and no cleanup is done on the database side for the leftover metadata.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            AndreeaChirica Andreea Chirica
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: