You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rainer Hermanns (JIRA)" <ji...@apache.org> on 2008/04/01 13:07:58 UTC
[jira] Closed: (WW-2565) StreamResult calling wrong method for
setContentType in resolveParamsFromStack
[ https://issues.apache.org/struts/browse/WW-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Hermanns closed WW-2565.
-------------------------------
Resolution: Fixed
Good catch, fixed in SVN trunk
> StreamResult calling wrong method for setContentType in resolveParamsFromStack
> ------------------------------------------------------------------------------
>
> Key: WW-2565
> URL: https://issues.apache.org/struts/browse/WW-2565
> Project: Struts 2
> Issue Type: Bug
> Components: Dispatch Filter
> Affects Versions: 2.1.0
> Reporter: Scott Hong
> Assignee: Rainer Hermanns
> Fix For: 2.1.1
>
>
> The head version of StreamResult.java has a very obvious bug.
> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java?view=markup
> protected void resolveParamsFromStack(ValueStack stack) {
> ..........................
> String contentType = stack.findString("contentType");
> if (contentType != null) {
> setContentLength(contentType);
> }
> ..........................
> }
> Change from
> setContentLength(contentType);
> To:
> setContentType(contentType);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.