struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4558) contentType override ignored for JSONInterceptor
Date Sun, 22 May 2016 07:03:12 GMT

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

Hudson commented on WW-4558:
----------------------------

SUCCESS: Integrated in Struts-JDK7-master #472 (See [https://builds.apache.org/job/Struts-JDK7-master/472/])
fix patch WW-4558 (victorsosa: rev fab687a07e8d873c82465b29188100debf61097f)
* plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
* plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java
fix patch WW-4558 (victorsosa: rev 0d4905038119f614f021af5738154079b30bca24)
* plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
* plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java


> contentType override ignored for JSONInterceptor
> ------------------------------------------------
>
>                 Key: WW-4558
>                 URL: https://issues.apache.org/jira/browse/WW-4558
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.3.24
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.5.1
>
>
> JSONInterceptor takes a contentType parameter, but as far as I can tell does nothing
with it.  I would think a reasonable way to use it would be to have it used if available,
rather than the content type from the request so that the interceptor can be used when receiving
a JSON post from a third party that does not set the correct content type.
> PR https://github.com/apache/struts/pull/87



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

Mime
View raw message