Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-6006

Knowledge Base's attachments endpoint is not working properly in Service Desk when the attachment has a space in the file name

    XMLWordPrintable

Details

    Description

      Summary

      Can't load/download/view attachments in knowledge base from Service Desk portal when the attachment has a space in the name. Example of attachment name: attachment 1.png. The endpoint is redirecting back to Confluence with incorrect path,

       
      /wiki/download/thumbnails/84082689/Attachment+1.PNG?version=1&modificationDate=1520507194166&cacheVersion=1&api=v2&width=515&height=250
      

      Steps to Reproduce

      1. Integrate a knowledge base to a service desk project.
      2. Create a page and upload an attachment that has a space in the file name.
      3. Load/Download/View the attachment from service desk portal.

      Expected Results

      • User should be able to load/download/view the attachment from the portal.

      Actual Results

      • Can't load/view the attachment, clicking on the attachment to download, it'll redirect to a page with 404 error.

      Workaround

      • Remove "api=v2" onwards from the path. Example of path:
         
        /wiki/download/thumbnails/84082689/Attachment+1.PNG?version=1&modificationDate=1520507194166&cacheVersion=1&api=v2&width=515&height=250
        

        .
        Remove &api=v2&width=515&height=250 and enter the URL directly on a new tab to download the attachment.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jgan Jonathan Gan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: