You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Scott Hong (JIRA)" <ji...@apache.org> on 2008/03/25 05:03:58 UTC

[jira] Created: (WW-2565) StreamResult calling wrong method for setContentType in resolveParamsFromStack

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


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.


[jira] Closed: (WW-2565) StreamResult calling wrong method for setContentType in resolveParamsFromStack

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WW-2565) StreamResult calling wrong method for setContentType in resolveParamsFromStack

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns updated WW-2565:
--------------------------------

    Fix Version/s: 2.1.1
         Assignee: Rainer Hermanns

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