struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-1526) Error with handling static resources under WebSphere 6
Date Wed, 21 Mar 2007 16:05:52 GMT

    [ https://issues.apache.org/struts/browse/WW-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40636
] 

James Mitchell commented on WW-1526:
------------------------------------

Apparently this isn't a universal fix for all Websphere versions.  I don't know the specifics
yet, but my client is still having issues in spite of this patch.  I'll try to get more info
and post back in a few days.

> Error with handling static resources under WebSphere 6
> ------------------------------------------------------
>
>                 Key: WW-1526
>                 URL: https://issues.apache.org/struts/browse/WW-1526
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>         Environment: IBM WebSphere 6.0
>            Reporter: Adam Czysciak
>         Assigned To: Ted Husted
>             Fix For: 2.0.7, 2.1.0
>
>
> It seems to be a bug with WebSphere, but a tiny patch to Struts2 can fix it.
> The findStaticResource method of FilterDispatcher calls copy(), then closes the InputStream.
It works well for static resources bigger than 4kb, bit it fails with "cannot obtain output
stream" forsmaller files.
> The patch is very simple: call output.flush() at the end of copy() method. Works perfect
with WebSphere 6.

-- 
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