Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60441

Attachment may inadvertently not be indexed for search if an Extractor2 is used in one of the enabled plugins

      Issue Summary

      Plugins that implement com.atlassian.confluence.plugins.index.api.Extractor2 that does not index the attachment but returns a non-null value (e.g. empty StringBuilder()) from extractText() method will cause file attachments not to be indexed in search as a side effect.
      Following plugins seem to be causing this effect:

      • Comala Workflows
      • ConfiForms
      • LucidChart OnPrem
      • Questions for Confluence

      Steps to Reproduce

      1. Install Questions for Confluence
      2. Attach a text file to any page
      3. Search a word contained in the text file

      Expected Results

      Attachment text file is found using search.

      Actual Results

      Text file is not indexed and not found.

      The below messages can be found confluence log if debug logging for com.atlassian.bonnie.search.extractor is enabled when the files are correctly indexed but not when the indexing is skipped:

      2020-10-15 15:14:20,630 DEBUG [Caesium-1-2] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Starting to index attachment: sample.txt
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [CONFSERVER-60441] Attachment may inadvertently not be indexed for search if an Extractor2 is used in one of the enabled plugins

            Ganesh Gautam made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]

            A fix for this issue is available in Confluence Server and Data Center 7.4.16.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Ganesh Gautam added a comment - A fix for this issue is available in Confluence Server and Data Center 7.4.16. Upgrade now or check out the Release Notes to see what other issues are resolved.
            set-jac-bot made changes -
            Fixed in Long Term Support Release/s New: [Download 7.4|https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html]
            James Ponting made changes -
            Fix Version/s New: 7.4.17 [ 100200 ]
            Adilson Carvalho (Inactive) made changes -
            Link New: This issue was cloned as CONFSERVER-78049 [ CONFSERVER-78049 ]
            g made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 522446 ]
            g made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 522446 ]
            Thiago Masutti made changes -
            Remote Link New: This issue links to "PSR-531 (JIRA Server (Bulldog))" [ 521402 ]
            Paige Martin made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]

            A fix for this issue is available to Server and Data Center customers in Confluence 7.10.0
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Paige Martin added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.10.0 Upgrade now or check out the Release Notes to see what other issues are resolved.

              jhronik Jiri Hronik
              jhronik Jiri Hronik
              Affected customers:
              2 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: