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

2020-02-13 Thread Mohammed Bilal (Jira)


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

Mohammed Bilal commented on OOZIE-3582:
---

Any updates on this issue?

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


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

2020-02-07 Thread Mohammed Bilal (Jira)


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

Mohammed Bilal commented on OOZIE-3582:
---

Thank you for updates!

Kinga,

I cannot change oozie version, it is managed by other teams.

Junfan,

No, I am not setting any property related to kerberos.

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


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

2020-02-06 Thread Junfan Zhang (Jira)


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

Junfan Zhang commented on OOZIE-3582:
-

Do you set kerberos true? [~mdbilaly2k]

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


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

2020-02-06 Thread Kinga Marton (Jira)


[ 
https://issues.apache.org/jira/browse/OOZIE-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)