[ 
https://issues.apache.org/jira/browse/HADOOP-6408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Todd Lipcon updated HADOOP-6408:
--------------------------------

    Attachment: hadoop-6408.txt

New patch in response to Steve's comments:
- Now sets HTTP content type header appropriately
- Sets status code to 400 for bad format.

Tested by unit tests, as well as manually using the namenode. I verified JSON 
output, XML output, and a bad format parameter. Also tested putting < and > in 
the format parameter to see if there was an XSS reflection attack, and it was 
properly escaped in the error message.

> Add a /conf servlet to dump running configuration
> -------------------------------------------------
>
>                 Key: HADOOP-6408
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6408
>             Project: Hadoop Common
>          Issue Type: New Feature
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-6408.txt, hadoop-6408.txt, hadoop-6408.txt, 
> hadoop-6408.txt, hadoop-6408.txt, hadoop-6408.txt, hadoop-6408.txt
>
>
> HADOOP-6184 added a command line flag to dump the running configuration. It 
> would be great for cluster troubleshooting to provide access to this as a 
> servlet, preferably in both JSON and XML formats. But really, any format 
> would be better than nothing. This should/could go into all of the daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to