struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Ge (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4650) Json deserialization does not work in 2.5.1
Date Fri, 24 Jun 2016 13:44:16 GMT

    [ https://issues.apache.org/jira/browse/WW-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15348282#comment-15348282
] 

Fred Ge edited comment on WW-4650 at 6/24/16 1:43 PM:
------------------------------------------------------

I forced header in $post with application/json but it is overriden in interceptor by :
"text/html,application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8"
Didn't find why.

victorsosa : i don't have json response as posting json object failed.

I cannot override the accept in the interceptor as the interceptor is in a common interceptors
stack and not all requests are in json format.
Struts.xml use wildcards for actions/methods, I'll try to specify json interceptor only on
the concerned action/method .




was (Author: fredgero):
I forced header in $post with application/json but it is overriden in interceptor by :
"text/html,application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8"
Didn't find why.

victorsosa : i don't have json response as posting json object failed.

I cannot override the accept in the interceptor as the interceptor is in a common interceptors
stack and not all requests are in json format.
Struts.xml use wildcards for actions/methods, I'll try to specify json interceptor only on
the concerned action/method .

note: failed under Tomcat 7 and 8

> Json deserialization does not work in 2.5.1
> -------------------------------------------
>
>                 Key: WW-4650
>                 URL: https://issues.apache.org/jira/browse/WW-4650
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.5.1
>            Reporter: Fred Ge
>             Fix For: 2.5.2
>
>
> A json posted from Angular request is not deserialized anymore. It worked in 2.5.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message