[
https://issues.apache.org/jira/browse/MAPREDUCE-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated MAPREDUCE-2253:
-----------------------------------
Attachment: mapreduce-2253.txt
Here's a new version that includes a unit test for TaskLogServlet (not just the
content type but also some of the escaping behavior, etc). I pulled in Jetty's
ServletTester libs into our test ivy conf.
Hopefully this test will serve as an example for how to test servlets using
this library and we can add some tests for other servlets as part of other
jiras.
> Servlets should specify content type
> ------------------------------------
>
> Key: MAPREDUCE-2253
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2253
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 0.22.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Critical
> Fix For: 0.22.0
>
> Attachments: mapreduce-2253.txt, mapreduce-2253.txt
>
>
> HADOOP-7093 will change the default content-type to text/plain. So
> TaskLogServlet, which outputs HTML, needs to change to specify this content
> type. I believe the other HTML servlets already correctly specify a content
> type. The MapOutputServlet appears to specify no content type and work fine
> without one, but to be "correct" we may as well specify
> application/octet-stream
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.