[jira] Created: (WW-3305) FreemarkerResult tamper Content-Type

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (WW-3305) FreemarkerResult tamper Content-Type

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FreemarkerResult tamper Content-Type
------------------------------------

                 Key: WW-3305
                 URL: https://issues.apache.org/struts/browse/WW-3305
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.8
            Reporter: zhouyanming
            Assignee: Musachy Barroso
            Priority: Critical
         Attachments: patch.txt

ServletActionContext.getResponse().setContentType("application/xml");
it doesn't works because FreemarkerResult will override with "text/html" latter

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


[jira] Updated: (WW-3305) FreemarkerResult tamper Content-Type

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

zhouyanming updated WW-3305:
----------------------------

    Attachment: patch.txt

here is patch

> FreemarkerResult tamper Content-Type
> ------------------------------------
>
>                 Key: WW-3305
>                 URL: https://issues.apache.org/struts/browse/WW-3305
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: zhouyanming
>            Assignee: Musachy Barroso
>            Priority: Critical
>         Attachments: patch.txt
>
>
> ServletActionContext.getResponse().setContentType("application/xml");
> it doesn't works because FreemarkerResult will override with "text/html" latter

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


[jira] Resolved: (WW-3305) FreemarkerResult tamper Content-Type

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Musachy Barroso resolved WW-3305.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0

fixed in trunk, thanks for reporting

> FreemarkerResult tamper Content-Type
> ------------------------------------
>
>                 Key: WW-3305
>                 URL: https://issues.apache.org/struts/browse/WW-3305
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: zhouyanming
>            Assignee: Musachy Barroso
>            Priority: Critical
>             Fix For: 2.2.0
>
>         Attachments: patch.txt
>
>
> ServletActionContext.getResponse().setContentType("application/xml");
> it doesn't works because FreemarkerResult will override with "text/html" latter

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