[
https://issues.apache.org/jira/browse/HADOOP-7093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HADOOP-7093:
--------------------------------
Status: Patch Available (was: Open)
Updated based on review comments. I tested /stacks, /metrics, and /conf on a
running NN and looks good:
t...@todd-w510:~$ curl -s -I 'http://localhost:50070/metrics?format=json' |
grep 'Content-Type'
Content-Type: application/json; charset=utf-8
t...@todd-w510:~$ curl -s -I 'http://localhost:50070/metrics' | grep
'Content-Type'
Content-Type: text/plain; charset=utf-8
t...@todd-w510:~$ curl -s -I 'http://localhost:50070/conf' | grep 'Content-Type'
Content-Type: text/xml; charset=utf-8
t...@todd-w510:~$ curl -s -I 'http://localhost:50070/stacks' | grep
'Content-Type'
Content-Type: text/plain; charset=utf-8
> Servlets should default to text/plain
> -------------------------------------
>
> Key: HADOOP-7093
> URL: https://issues.apache.org/jira/browse/HADOOP-7093
> Project: Hadoop Common
> Issue Type: Bug
> Components: io
> Affects Versions: 0.22.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Fix For: 0.22.0
>
> Attachments: hadoop-7093.2.txt, hadoop-7093.txt
>
>
> In trunk the servlets like /stacks and /metrics are returning text/html
> content-type instead of text/plain. Security wise it's much safer to default
> to text/plain and require servlets to explicitly set the content-type to
> text/html when required.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.