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

Live Search Macro fails to open attachments that contain spaces in the name.

      When a user searches for an attachment that contain spaces the macro will work fine, however if he click on that attachment it will result in a page not find error.

      Steps to reproduce:

      1. Create a space and attach the to it the files "nospace.doc" and "with space.doc".
      2. Now create a new page and add the Live Search Macro.
      3. Search for the "nospace.doc", and click on it.
      4. File will open fine.
      5. Go back to the page where you added the Live Search Macro and search for the "with space.doc"
      6. You will get the page not found error.

      Workaround:

      If you remove spaces in the name of the attachment you will be able to open it using live search macro.

      Notes:

      If you go to Confluence Search Page and search for the attachment this will be the URL you will get:

      http://localhost:8090/download/attachments/1540098/with%20space.doc?version=1&modificationDate=1394227894728&api=v2 
      

      However when opening the file with Live Search Macro you will get below one in return:

      http://localhost:8090/download/attachments/1540098/with%2520space.doc?version=1&modificationDate=1394227894728&api=v2
      

      For some reason when using Live Search Macro the "%20" get replaced with "%2520"

        1. nospace.doc
          9 kB
          Deividi Luvison
        2. pagenotfound.PNG
          22 kB
          Deividi Luvison
        3. with space.doc
          9 kB
          Deividi Luvison

            [CONFSERVER-32869] Live Search Macro fails to open attachments that contain spaces in the name.

            Avik H made changes -
            Link New: This issue relates to CONFSERVER-94864 [ CONFSERVER-94864 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2893094 ] New: CONFSERVER Bug Workflow v4 [ 2985033 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2792674 ] New: JAC Bug Workflow v3 [ 2893094 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2722559 ] New: JAC Bug Workflow v2 [ 2792674 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392596 ] New: JAC Bug Workflow [ 2722559 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2274698 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392596 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231322 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2274698 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190353 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231322 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1923609 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190353 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1731851 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1923609 ]

              kma@atlassian.com Khanh Ma (Inactive)
              dluvison Deividi Luvison (Inactive)
              Affected customers:
              21 This affects my team
              Watchers:
              30 Start watching this issue

                Created:
                Updated:
                Resolved: