Dilli Arumugam created KNOX-159:
-----------------------------------
Summary: oozie job submission thorugh knox fails for secure cluster
Key: KNOX-159
URL: https://issues.apache.org/jira/browse/KNOX-159
Project: Apache Knox
Issue Type: Bug
Reporter: Dilli Arumugam
Oozie job submission thorugh knox fails for secure cluster
See curl session snippets
curl -i -k -u guest:guest-password -T workflow-configuration.xml -H
Content-Type:application/xml -X POST
https://localhost:8443/gateway/sandbox/oozie/v1/job?action=start
HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request
Set-Cookie: JSESSIONID=13rjfidkhz4zoqher4rrwdks7;Path=/gateway/sandbox;Secure
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Apache-Coyote/1.1
oozie-error-code: E0301
oozie-error-message: E0301: Invalid resource []
Date: Wed, 25 Sep 2013 18:45:05 GMT
Content-Type: text/html;charset=UTF-8
Connection: close
<html><head><title>Apache Tomcat/6.0.36 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 400 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The request sent by the client was
syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/6.0.36<
Snippet from oozie.log
2013-09-25 18:45:05,574 WARN V1JobServlet:542 - USER[-] GROUP[-] TOKEN[-]
APP[-] JOB[-] ACTION[-] URL[POST
http://localhost:8443/oozie/v1/job?doAs=guest&action=start] error[E0301],
E0301: Invalid resource []
org.apache.oozie.servlet.XServletException: E0301: Invalid resource []
at
org.apache.oozie.servlet.JsonRestServlet.validateRestUrl(JsonRestServlet.java:416)
at
org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:276)
Please note that Oozie job submission succeeds without Knox in the path.
--
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