Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-410

[Backend] Deleted Attachments Returning in Confluence Search Results

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      Summary

      Attachments which have been deleted from a Confluence Page are still searchable after a Content Index is performed

      Environment

      • Confluence Cloud version 6.0.0-OD-2016.07.2
      • Confluence server version 5.9.x and above

      Steps to Reproduce

      1. Add an attachment to a Confluence Page (does not need to be embedded on the page itself)
      2. Search for the Attachment using the Filename of the Attachment; it should display in the Search Results
      3. Delete the Attachment
      4. Search again for the Attachment; should not display in the Search Results
      5. Perform a task which triggers a Content Index (Move Pages, Create Space, etc) or as SysAdmin, manually trigger a Content Re-Index

      Expected Results

      Deleted attachment does not return in search results

      Actual Results

      • Deleted Attachment is shown in search results however when clicked displays a file not found error:
      • In some versions, deleted Attachments are able to be viewed like normal attachment
      • The attachment also reappeared in the Space Attachment list by going to Space Tools > Content Tools > Attachments

      Database shows that the Attachment has been deleted:

      confluence=> select contentid, contenttype, title, content_status from content where title like '%ExampleAttachment%';
       contentid | contenttype |          title          | content_status
      -----------+-------------+-------------------------+----------------
         5046279 | ATTACHMENT  | 1.ExampleAttachment.png | deleted
         5046280 | ATTACHMENT  | 2.ExampleAttachment.png | deleted
      (2 rows)

      Notes

      1. Rebuilding Cache does not seem to correct the issue
      2. Reindexing from scratch does not seem to correct the issue either

      Workaround

      1. Delete the attachment from the trash by going to Space Tool > Content Tools > Trash > choose the deleted attachments > Delete
      2. Purge the trash by going to Space Tool > Content Tools > Trash > purge

          Form Name

            [AI-410] [Backend] Deleted Attachments Returning in Confluence Search Results

            Hi this does not appear to be resolved - we are still able to see deleted documents when searching in spaces. Please fix this.

            Jennifer Turliuk added a comment - Hi this does not appear to be resolved - we are still able to see deleted documents when searching in spaces. Please fix this.

            especially when you have over 200 spaces.

            Job Wolters added a comment - especially when you have over 200 spaces.

            please fix this soon. The workaround is very unhandy on a daily basis.

            Tom Birch Hansen added a comment - please fix this soon. The workaround is very unhandy on a daily basis.

            The same thing is going on with the pages. Not purged ones are also visible in a search bar which is very confusing after bigger reorganizations of spaces.

            Deleted Account (Inactive) added a comment - The same thing is going on with the pages. Not purged ones are also visible in a search bar which is very confusing after bigger reorganizations of spaces.

            How can it take a year to fix this?  We have had people waisting time reviewing the wrong documents

            Anette Prindahl added a comment - How can it take a year to fix this?  We have had people waisting time reviewing the wrong documents

            same in Confluence 6.0.3 

            Benjamin C. John [Decadis AG] added a comment - same in Confluence 6.0.3 

            Philipp Scherer added a comment - - edited

            It exists also in 5.10.3! 

             

            //Update: Rebuild Index from scratch is just waste of time.

            Philipp Scherer added a comment - - edited It exists also in 5.10.3!    //Update: Rebuild Index from scratch is just waste of time.

            Same problem in 4.1.5 - and here we cannot use @chris.solgat workaround, because attachments are not moved into trash!

            Philipp Scherer added a comment - Same problem in 4.1.5 - and here we cannot use @chris.solgat workaround, because attachments are not moved into trash!

            Not sure I'd promote that as a workaround Chris It's not always an option available to folks, especially regular Confluence users who are typically those most affected by this issue. The confusion brought about by this issue is one I'd prefer to see removed entirely rather than worked around on a case-by-case basis.

            I'd much prefer to see a solution to this one rather than a workaround - it took me ages to figure out that the attachment had been deleted from the page reported to me by one of my users.

            Graham Campbell added a comment - Not sure I'd promote that as a workaround Chris It's not always an option available to folks, especially regular Confluence users who are typically those most affected by this issue. The confusion brought about by this issue is one I'd prefer to see removed entirely rather than worked around on a case-by-case basis. I'd much prefer to see a solution to this one rather than a workaround - it took me ages to figure out that the attachment had been deleted from the page reported to me by one of my users.

            Experienced this in 5.8.5 as well, but noticed that there may be a possible workaround. If you go into the "Trash" for the Space where the attachment was deleted, and remove it from the trash, it will no longer show up in the search results.

            Chris Solgat added a comment - Experienced this in 5.8.5 as well, but noticed that there may be a possible workaround. If you go into the "Trash" for the Space where the attachment was deleted, and remove it from the trash, it will no longer show up in the search results.

              jpaladin Jack Paladin (Inactive)
              scranford Shawn C (Inactive)
              Affected customers:
              38 This affects my team
              Watchers:
              40 Start watching this issue

                Created:
                Updated:
                Resolved: