struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (WW-4558) contentType override ignored for JSONInterceptor
Date Sun, 22 May 2016 06:31:13 GMT


ASF subversion and git services commented on WW-4558:

Commit fab687a07e8d873c82465b29188100debf61097f in struts's branch refs/heads/master from
[;h=fab687a ]

fix patch WW-4558

contentType override ignored for JSONInterceptor

>From now on:

The "accept" request header parameter must be "application/json" or

Also the default encoding is "UTF-8"

> contentType override ignored for JSONInterceptor
> ------------------------------------------------
>                 Key: WW-4558
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.3.24
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.5.x
> 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

This message was sent by Atlassian JIRA

View raw message