You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/06 17:01:00 UTC

[jira] [Commented] (IMPALA-7387) Set appropriate MIME type for JSON web pages

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

ASF subversion and git services commented on IMPALA-7387:
---------------------------------------------------------

Commit 3334c167a69a6506d595898dff73fb16410266e6 in impala's branch refs/heads/master from Bharath Vissapragada
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=3334c16 ]

IMPALA-7387: Set correct MIME type for JSON webpages

Right now Impala sets "text/plain" as the MIME type for all non-HTML
pages. As per RFC-4627[1], JSON's prescribed MIME type is
"application/json".

Additionally, this commit also sets UTF-8 charset for text/[html/plain]
encodings. As per [2] application/json does not require it to be set.

Testing:
- Inspected HTTP headers manually in the browser.
- Added tests.

[1] http://www.ietf.org/rfc/rfc4627.txt
[2] https://www.iana.org/assignments/media-types/application/json

Change-Id: I7ad94343151730851a4ad01a1f4b9326a36a37ea
Reviewed-on: http://gerrit.cloudera.org:8080/11110
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Philip Zeyliger <ph...@cloudera.com>


> Set appropriate MIME type for JSON web pages
> --------------------------------------------
>
>                 Key: IMPALA-7387
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7387
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 3.1.0
>            Reporter: bharath v
>            Assignee: bharath v
>            Priority: Minor
>
> Currently, Impala renders the pages with content-type set to text/plain for JSON output. 
> It should be "application/json" as per [RFC 4627|http://www.ietf.org/rfc/rfc4627.txt].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org