Mohammed Bilal created OOZIE-3582:
-------------------------------------
Summary: Rerun end point returning 401 error
Key: OOZIE-3582
URL: https://issues.apache.org/jira/browse/OOZIE-3582
Project: Oozie
Issue Type: Test
Components: security
Affects Versions: 4.2.0
Reporter: Mohammed Bilal
Fix For: 4.2.0
Hi,
I am making HTTP put request to rerun oozie job, but I am seeing authorization
issue.
I added basic authorization, but no luck.
I referred web API and followed all the steps mentioned there.
[https://oozie.apache.org/docs/4.2.0/WebServicesAPI.html#Re-Running_a_Workflow_Job]
Here there is no information about any kind of security mechanism which we need
to follow before calling rerun end point. I was able to invoke post method
without any issue to start a oozie job without any authentication.
Could you please provide me more details on how I can fix this issue?
Error Log:
org.springframework.web.client.HttpClientErrorException: 401
Unauthorizedorg.springframework.web.client.HttpClientErrorException: 401
Unauthorized at
org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:79)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:775)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:728)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:694)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE] at
org.springframework.web.client.RestTemplate.put(RestTemplate.java:503)
~[spring-web-5.0.5.RELEASE.jar:5.0.5.RELEASE]
Thank you!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)