[
https://issues.apache.org/jira/browse/WINK-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862727#action_12862727
]
Bryant Luk commented on WINK-279:
---------------------------------
I think in the ServerMediaTypeCharsetAdjuster if we just replaced the:
{code}
if (context != null) {
HttpServletResponse response =
context.getAttribute(HttpServletResponse.class);
response.setContentType(newMediaTypeStr);
}
{code}
with:
{code}
httpHeaders.putSingle(HttpHeaders.CONTENT_TYPE, newMediaTypeStr);
{code}
that should fix this issue.
Disabling the charset adjustment out of the box to ensure behavior is
relatively the same for 1.0 and 1.1 is probably best (in case some
clients/tests do not parse the charset attribute correctly).
> Error while opening HTML & JSON version of QADefect sample
> ----------------------------------------------------------
>
> Key: WINK-279
> URL: https://issues.apache.org/jira/browse/WINK-279
> Project: Wink
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.1
> Environment: java version "1.5.0_12"
> geronimo-tomcat6-javaee5-2.2
> Windows XP Service Pack 3
> Reporter: Shiva Kumar H R
>
> After building and deploying
> apache-wink-1.1-incubating\examples\apps\QADefect into Apache Geronimo v2.2
> server, when I access
> http://localhost:8080/QADefect/rest/defects?alt=text/html from either Firefox
> or Internet Explorer, I hit the following error:
> XML Parsing Error: not well-formed
> Location: http://localhost:8080/QADefect/rest/defects?alt=text%2Fhtml
> Line Number 150, Column 25:
> if(display != null && display != 'undefined' && display == 'none') {
> ------------------------^
> However the Atom xml version of the above page
> (http://localhost:8080/QADefect/rest/defects?alt=application/atom+xml) works
> as expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.