You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2013/06/19 18:37:21 UTC

[jira] [Commented] (KNOX-79) post parameters are lost while request flows from knox to secure cluster

    [ https://issues.apache.org/jira/browse/KNOX-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688139#comment-13688139 ] 

Kevin Minder commented on KNOX-79:
----------------------------------

It looks an existing test should be enhanced to do a better job here.
gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java(testJavaMapReduceViaTempleton)
In the submitJava called within that method you can see that it doesn't really check content of the body at all.  The MockServer framework looks like it needs to be extended to support dealing with request body entities better.

                
> post parameters are lost while request flows from knox to secure cluster
> ------------------------------------------------------------------------
>
>                 Key: KNOX-79
>                 URL: https://issues.apache.org/jira/browse/KNOX-79
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.3.0
>            Reporter: Dilli Arumugam
>            Assignee: Dilli Arumugam
>             Fix For: 0.3.0
>
>
> While attempting to test templeton job submission with curl command
> curl -kiv -u bob:bob-password -X POST -d jar=/tmp/wordcount.jar \
>       -d class=WordCount  -d arg=/tmp/test/input -d arg=/tmp/test/output \
>       'https://localhost:8443/gateway/sample/templeton/api/v1/mapreduce/jar'
> We get error message from templeton indicating that jar parameter was not provided.
> As you can see this was provided as post parameter in the call to Knox, but looks like it is not passed over to templeton.

--
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