You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Kinga Marton (Jira)" <ji...@apache.org> on 2020/02/06 11:00:00 UTC

[jira] [Commented] (OOZIE-3582) Rerun end point returning 401 error

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

Kinga Marton commented on OOZIE-3582:
-------------------------------------

[~mdbilaly2k], have you faced this issue with the latest Oozie (5.2.0) as well?

> Rerun end point returning 401 error
> -----------------------------------
>
>                 Key: OOZIE-3582
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3582
>             Project: Oozie
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 4.2.0
>            Reporter: Mohammed Bilal
>            Priority: Critical
>             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)