mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (MAHOUT-755) RecommenderServlet response content types for XML and JSON
Date Wed, 06 Jul 2011 21:29:16 GMT


Hudson commented on MAHOUT-755:

Integrated in Mahout-Quality #925 (See [])
    MAHOUT-755 use application/* MIME types

srowen :
Files : 
* /mahout/trunk/integration/src/main/java/org/apache/mahout/cf/taste/web/

> RecommenderServlet response content types for XML and JSON
> ----------------------------------------------------------
>                 Key: MAHOUT-755
>                 URL:
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.6
>            Reporter: Julian Bell
>            Assignee: Sean Owen
>            Priority: Minor
>              Labels: Encoding
>             Fix For: 0.6
> In my opinion I believe the following changes should be made:
> For the writeJSON method, the content type should be changed from "text/plain" to "application/json".
 It's not as 'friendly' to some browsers but is more technically correct.  See
> For the writeXML method, if you don't put the character encoding type into the same line
at the content type, then the encoding type can be ignored and decoded as ASCII (see
 So you could change the content type from "text/xml" to "text/xml; charset=utf-8" but it's
probably better to change it to "application/xml".  See

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message