struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Hermanns (JIRA)" <j...@apache.org>
Subject [jira] Closed: (WW-2565) StreamResult calling wrong method for setContentType in resolveParamsFromStack
Date Tue, 01 Apr 2008 11:07:58 GMT

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


Mime
View raw message