When Opening Large PDF File In JIRA Attachment An established connection was aborted Error Shown In Logs

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.5
    • Component/s: Issue - Attachments
    • None
    • 7.13
    • 19
    • Severity 3 - Minor
    • 3

      Issue Summary

      JIRA log is showing An established connection was aborted by the software in your host machine when viewing a large PDF file is open in issue view page. The issue seems only reproducible with PDF larger than 2MB.

      Steps to Reproduce

      1. Attach JIRASOFTWARESERVER071-290216.pdf to one of your ticket as attachment
      2. Open the PDF in issue view page to view it
      3. Access to JIRA's atlassian-jira logs and you will see below error prompt:-
        2019-11-07 21:35:14,016 http-nio-8080-exec-9 ERROR admin 1295x370x1 1eyasqh 0:0:0:0:0:0:0:1 /secure/attachment/10002/JIRASOFTWARESERVER071-290216.pdf [c.a.j.web.servlet.ViewAttachmentServlet] Error serving file for path /10002/JIRASOFTWARESERVER071-290216.pdf: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
        com.atlassian.jira.issue.attachment.AttachmentReadException: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
        	at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFile...
        	at java.lang.Thread.run(Thread.java:748)
        Caused by: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established 
        ...
        

      Expected Results

      No error logs prompt in log as the PDF is able to view accordingly in JIRA UI level.

      Actual Results

      Below error logs prompt:-

      2019-11-07 21:35:14,016 http-nio-8080-exec-9 ERROR admin 1295x370x1 1eyasqh 0:0:0:0:0:0:0:1 /secure/attachment/10002/JIRASOFTWARESERVER071-290216.pdf [c.a.j.web.servlet.ViewAttachmentServlet] Error serving file for path /10002/JIRASOFTWARESERVER071-290216.pdf: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
      com.atlassian.jira.issue.attachment.AttachmentReadException: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
      	at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:153)
      	at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62)
      	at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: com.atlassian.jira.exception.DataAccessException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
      	at com.atlassian.jira.issue.managers.DefaultAttachmentManager$7.get(DefaultAttachmentManager.java:733)
      	at com.atlassian.jira.issue.managers.DefaultAttachmentManager$7.get(DefaultAttachmentManager.java:727)
      	at 
      ...
      

      Workaround

      No workaround available currently, it shouldn't cause any impact to JIRA's usage

            Assignee:
            Unassigned
            Reporter:
            Danson (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: