struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STR-2700) Hanging Fileupload in Large Input JSP
Date Wed, 04 Jul 2007 15:22:27 GMT

     [ https://issues.apache.org/struts/browse/STR-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Benedict updated STR-2700:
-------------------------------

    Component/s: Apps

Here's my testing:

1) Removed all delegation to DiskFileUpload in CommonsMultipartRequestHandler, but the problem
remained. This ruled out a problem with file parsing.

2) Threw a NullPointerException in CommonsMultipartRequestHandler, but the problem remained.
This ruled out a problem with handling specific exceptions from Commons FileUpload.

3) Did nothing but set MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED, but the problem
remained. This ruled out any special Struts handling of aborting uploads.

After some ruminations, the web was indicating that the problem is caused by the socket blocking
because no one is reading from it. So what I did was finish reading the input stream and threw
away the buffer. This prevented any blocking when the forwarded page was rendered.

> Hanging Fileupload in Large Input JSP
> -------------------------------------
>
>                 Key: STR-2700
>                 URL: https://issues.apache.org/struts/browse/STR-2700
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Apps, Core
>    Affects Versions: 1.2.8
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Urs Hassler
>             Fix For: 1.4.0
>
>         Attachments: upload.jsp
>
>
> Steps: 
> 1. Select the WAR struts-example.war in the binary distribution of struts 1.2.8
> 2. Modify the page Upload.jsp in the following way: Add a 20 kB of static HTML
> after the form.
> 3. Deploy
> Observation: 
> - A file upload with a filesize < Max Filesize completes correctly.
> - A file upload with a filesize > Max Filesize does not complete. The
> application hangs and the error message will not be displayed. 
> This behavior has been tested on Tomcat / PC, Weblogic 8.1 / Sun, Weblogic 8.1 / PC

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message