Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-40833

Deleted Pages, Blogpost and Attachments Returning in Confluence Search Results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.8.15, 6.0.0-OD-2016.07.1-0002, 5.9.12, 5.10.7, 6.0.0-beta7, 1000.444.0, 6.2.3
    • Fix Version/s: 6.7.0
    • Component/s: Search - Indexing
    • Symptom Severity:
      Severity 3 - Minor
    • UIS:
      21
    • Support reference count:
      23
    • Sprint:
      Jambalaya, Knocking on Heavens Door, Lean On Me, Money for Nothing
    • Testing Notes:
      1. Search
      2. Search along with left hand side filter
      3. Check for highlight
      4. Explain
      5. Rest Call using CQL
      6. BM25L ranking function
    • Occurrence Factor:
      10%

      Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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

        Attachments

          Issue Links

            Activity

              People

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  30 weeks, 3 days ago