Uploaded image for project: 'Document Management System (closed)'
  1. Document Management System (closed)
  2. MGNLDMS-185

DMSDownloadServlet logs error messages on client abort

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 1.4.3
    • None
    • Tomcat 6.0.26

    Description

      The DMSDownloadServlet logs error messages on client abort -

      2010-05-15 00:00:07,261 ERROR info.magnolia.module.dms.DMSDownloadServlet - error during download
      ClientAbortException:  java.net.SocketException: Connection reset
              at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
              at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
              at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
              at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
              at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
              at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
              at info.magnolia.module.dms.DMSDownloadServlet.sendUnCompressed(DMSDownloadServlet.java:124)
              at info.magnolia.module.dms.DMSDownloadServlet.handleResourceRequest(DMSDownloadServlet.java:109)
              at info.magnolia.module.dms.DMSDownloadServlet.process(DMSDownloadServlet.java:185)
              at info.magnolia.module.dms.DMSDownloadServlet.doGet(DMSDownloadServlet.java:75)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at info.magnolia.cms.filters.ServletDispatchingFilter.doFilter(ServletDispatchingFilter.java:183)
      
      ...
      

      This has once been fixed in MGNLDMS-106 but we now have a regression - probably due to a exception change in recent tomcat versions. Tomcat (using 6.0.26 here) doesn't throw a SocketException, but a ClientAbortException (which is an IOException).

      I'd suggest to catch the IOException rather then the SocketException in DMSDownloadServlet.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pbaerfuss Philipp Bärfuss
                ojs Oliver Siegmar
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: