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

Confluence Attachment search does not work if the attachment name has hyphen "-"

      I have uploaded an attachment which has hyphen("-") in its name, to a confluence page.
      When I try to search the attachment by clicking "insert -> images -> Search -> This space",
      attachment was not found in Search result.
      Confluence Search is not able to find the attachment if it has "-" in the name.

      Steps to reproduce:

      • Upload an attachment which has "-" in it's name to a confluence page.(Ex: Outlook-encrypt.png)
      • Edit the page and try to embed the attached image on this page by clicking "images => Search => This space".
      • Enter the search string as "Outlook-encrypt" and search.
      • Even though attachment exists, it will not be displayed while searching with search string "Outlook-encrypt".

      It's very common practise to have hyphen in file names.
      There are many attachments uploaded to our Confluence pages by users have the hyphens in attachment names.
      Our users are not able to search the attachments because of this issue.

            [CONFSERVER-38036] Confluence Attachment search does not work if the attachment name has hyphen "-"

            This bug looks to have returned for us in version 7.13.4. 

            Cameron Birdwell added a comment - This bug looks to have returned for us in version 7.13.4. 

            Minh Tran added a comment -

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

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

            Same problem here with Confluence 5.10.7.

            Image search feature does not bring images with hyphen like 'eclipse-code-formatter.png', 'pmd-configuration', or 'test-file'.

            Roberto Rocha Rodrigues added a comment - Same problem here with Confluence 5.10.7. Image search feature does not bring images with hyphen like 'eclipse-code-formatter.png', 'pmd-configuration', or 'test-file'.

            I did some more testing today in 5.10.3. It looks like, that the search function is separating the strings at the hyphen.

            Let say you have 4 attachments:
            Jan2016_Book.pdf
            2016-001-1234.jpg
            Freefall2016.jpg
            Freefall001.jpg

            if you search for "2016-001" it will show
            Jan*2016*_Book.pdf
            Freefall*2016*.jpg

            if you search for 001-1234 it will show
            Freefall*001*.jpg

            So my assumption is, that all strings after the first hyphen are discarded, so intact in the first example only "2016" is searched for and in the second "001". Why the results don't shop up is still a mystery, but it might be an issue with using the hyphen as a separator character at all.

            Ronny

            Ronny Bremer added a comment - I did some more testing today in 5.10.3. It looks like, that the search function is separating the strings at the hyphen. Let say you have 4 attachments: Jan2016_Book.pdf 2016-001-1234.jpg Freefall2016.jpg Freefall001.jpg if you search for "2016-001" it will show Jan*2016*_Book.pdf Freefall*2016*.jpg if you search for 001-1234 it will show Freefall*001*.jpg So my assumption is, that all strings after the first hyphen are discarded, so intact in the first example only "2016" is searched for and in the second "001". Why the results don't shop up is still a mystery, but it might be an issue with using the hyphen as a separator character at all. Ronny

            We do have the same issue here. Lots of images are attached all over the space and the contains hypens. As soon as you try to search for them, they don't show up at all or only partially.

            Ronny Bremer added a comment - We do have the same issue here. Lots of images are attached all over the space and the contains hypens. As soon as you try to search for them, they don't show up at all or only partially.

              hrehioui Hasnae (Inactive)
              b8f94afe10ac Chandrakanth Bhat
              Affected customers:
              11 This affects my team
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: