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] [Commented] (WW-4650) Json deserialization does not work in 2.5.1
Date Thu, 23 Jun 2016 15:07:16 GMT

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

Fred Ge commented on WW-4650:
-----------------------------

Yes it is related.
I put breakpoint on JsonInterceptor 2.5.1, and here is what i get:
- The request header by AngularJS is well set to "Accept:application/json". 
- But when getting in JsonInterceptor, accept parameter is already initialized with "text/html,application/xhtml+xml..."
(line 60), so it is not initialized by request header (line 69) and the json object is not
deserialized.





> 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