Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3582

Rerun end point returning 401 error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: security
    • Labels:
      None

      Description

      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!

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mdbilaly2k Mohammed Bilal
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: