Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-65184

Opening an Attachment after Session Timeout Results in Blank page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 7.2.8, 7.3.4
    • Issue - Attachments
    • None

    Description

      Issue Summary

      If a user opens an attachment after his session times out, JIRA would show a white page and throw the error below in the logs instead of prompting the user to login.

      2017-04-27 21:51:11,813 http-nio-8734-exec-19 ERROR anonymous 1311x1811x1 - 127.0.0.1 /secure/attachment/10003/test%20efte.docx [c.a.j.web.servlet.ViewAttachmentServlet] Error serving file for path /10003/test efte.docx: Illegal character in path at index 29: /secure/attachment/10003/test efte.docx
      java.lang.IllegalArgumentException: Illegal character in path at index 29: /secure/attachment/10003/test efte.docx
      	at java.net.URI.create(URI.java:852)
      	at com.atlassian.web.servlet.plugin.ResolvingServletForwarder.resolve(ResolvingServletForwarder.java:42)
      	at com.atlassian.web.servlet.plugin.ResolvingServletForwarder.forwardSafely(ResolvingServletForwarder.java:52)
      	at
      
      Caused by: java.net.URISyntaxException: Illegal character in path at index 29: /secure/attachment/10003/test efte.docx
      	at java.net.URI$Parser.fail(URI.java:2848)
      	at java.net.URI$Parser.checkChars(URI.java:3021)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3105)
      	at java.net.URI$Parser.parse(URI.java:3063)
      	at java.net.URI.<init>(URI.java:588)
      	... 262 more
      
      Steps to Reproduce
      1. Attach a file which has spaces in the name e.g. "my image.png" to an issue.
      2. Open any pages in a new tab.
      3. Sign out of JIRA in the new tab.
      4. Go back to the issue in the original tab and open the attached file.
      Expected Result

      JIRA would prompt the user to login so as to be able to view the attachment.

      Actual Result

      JIRA would show a blank white page with the error shown above.

      Observation and Workaround

      The issue has been observed to occur only when there is a space in the name of the file in question.

      If there is none, JIRA works correctly and prompts the user to login back.

      Hence, remove white spaces between files as a workaround.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ijimoh Ismael Olusula Jimoh (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: