You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Thomas Graves (Created) (JIRA)" <ji...@apache.org> on 2012/01/03 19:12:39 UTC

[jira] [Created] (MAPREDUCE-3613) web service calls header contains 2 content types

web service calls header contains 2 content types
-------------------------------------------------

                 Key: MAPREDUCE-3613
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: mrv2
    Affects Versions: 0.23.0
            Reporter: Thomas Graves
            Assignee: Thomas Graves
            Priority: Blocker


when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:

> Accept: application/xml
>
< HTTP/1.1 200 OK
< Content-Type: text/plain; charset=utf-8
< Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262605#comment-13262605 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk #1026 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1026/])
    MAPREDUCE-3613. web service calls header contains 2 content types (tgraves) (Revision 1330560)

     Result = FAILURE
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330560
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262059#comment-13262059 ] 

Thomas Graves commented on MAPREDUCE-3613:
------------------------------------------

I agree with you totally. I wanted to change it in HttpServer but saw that as a bigger effort that we could do later.
                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Robert Joseph Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262038#comment-13262038 ] 

Robert Joseph Evans commented on MAPREDUCE-3613:
------------------------------------------------

I don't really like the fix because it requires all of the jersey methods to be modified, in exactly the same way, but that is the exact same fix as HDFS-2441 did so I guess it is OK.

The root of the issue appears to be that HttpServer.QuotingInputFilter is trying to guess what the content type is based off of the URI of the request, and always setting it no matter what.  This seems to be so that we can set the charset of the response to be utf-8.  This is coupled with Jersey also outputting the content type instead of overwriting the one that was set previously.

Also it makes it more difficult for them to be called as regular methods.    I really would prefer to see something with the server where we could fix some of this in HttpServer itself so that we don't get the automatic content type for web services.  But that is likely to be a bigger change and would be a bit more cross project.  Sadly I tried upgrading to Jersey 1.12 and it does not fix the issue.

So reluctantly I give this a +1.

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262128#comment-13262128 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Common-trunk-Commit #2134 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2134/])
    MAPREDUCE-3613. web service calls header contains 2 content types (tgraves) (Revision 1330560)

     Result = SUCCESS
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330560
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-3613:
-------------------------------------

    Attachment: MAPREDUCE-3613.patch

gets rid of the extra content-type header added by the generic HttpServer.  
                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178890#comment-13178890 ] 

Thomas Graves commented on MAPREDUCE-3613:
------------------------------------------

This appears to be that the common HTTPServer class is setting the content-type in the doFilter routine first, then later jersey sets it to what it actually is.  Instead of over writing it, it appears to append it.  Need to investigate fix.
                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Blocker
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262125#comment-13262125 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2208 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2208/])
    MAPREDUCE-3613. web service calls header contains 2 content types (tgraves) (Revision 1330560)

     Result = SUCCESS
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330560
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-3613:
-------------------------------------

    Target Version/s: 0.23.3  (was: 0.23.0)
    
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262570#comment-13262570 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #239 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/239/])
    merge -r 1330560:1330561 from branch-2. FIXES: MAPREDUCE-3613 (Revision 1330562)

     Result = UNSTABLE
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330562
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-3613:
-------------------------------------

    Status: Patch Available  (was: Open)

No way to easily unit test this as we would have to start up the entire httpserver with the yarn web app framework and all, so no tests were added. The existing webservice tests will verify nothing was broken.  I manually tested all the webservice calls via curl to make sure only the xml/json content type came out.
                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-3613:
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.23.3
           Status: Resolved  (was: Patch Available)

thanks for the review Bobby!
I've committed this to trunk, branch-2, and branch-0.23
                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun C Murthy closed MAPREDUCE-3613.
------------------------------------

    
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3, 2.0.2-alpha
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262143#comment-13262143 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2151 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2151/])
    MAPREDUCE-3613. web service calls header contains 2 content types (tgraves) (Revision 1330560)

     Result = SUCCESS
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330560
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262619#comment-13262619 ] 

Hudson commented on MAPREDUCE-3613:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk #1061 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1061/])
    MAPREDUCE-3613. web service calls header contains 2 content types (tgraves) (Revision 1330560)

     Result = FAILURE
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330560
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/AMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NMWebServices.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java

                
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3
>
>         Attachments: MAPREDUCE-3613.patch
>
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3613) web service calls header contains 2 content types

Posted by "Thomas Graves (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-3613:
-------------------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: MAPREDUCE-2863
    
> web service calls header contains 2 content types
> -------------------------------------------------
>
>                 Key: MAPREDUCE-3613
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3613
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Blocker
>
> when doing requesting info from the web services rest API, curl seems to return content-type of both text and json or xml:
> > Accept: application/xml
> >
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=utf-8
> < Content-Type: application/xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira