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

            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.

            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.

            Can you please confirm when this will be backported to the 7.4.x LTS?

            Craig Castle-Mead added a comment - Can you please confirm when this will be backported to the 7.4.x LTS?

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

                Created:
                Updated:
                Resolved: