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

Oozie returned 500 Internal Server error when user passes invalid request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2, 4.0.0
    • 4.1.0
    • core
    • None

    Description

      We should return 400 Bad request in this case since its a user error.
      C:\ServiceCode\Main\src>curl -k -g --request PUT -d user.name=hdinsightuser -u "<username>:<password>" "<clusterUrl>/oozie/v1/job/?action=kill"
      <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;col or: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

      {c olor : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 500 - id cannot be empty</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>
      message</b> <u>id cannot be empty</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.Ill
      egalArgumentException: id cannot be empty
      org.apache.oozie.util.ParamChecker.notEmpty(ParamChecker.java:87)
      org.apache.oozie.util.ParamChecker.notEmpty(ParamChecker.java:71)
      org.apache.oozie.command.coord.CoordKillXCommand.<init>(CoordKillXCommand.java:58)
      org.apache.oozie.CoordinatorEngine.kill(CoordinatorEngine.java:174)
      org.apache.oozie.servlet.V1JobServlet.killCoordinatorJob(V1JobServlet.java:482)
      org.apache.oozie.servlet.V1JobServlet.killJob(V1JobServlet.java:152)
      org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
      org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:286)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:126)
      org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:384)
      org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:131)
      org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
      </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.36 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.36</h3></body></html>

      Attachments

        1. OOZIE-182-condor-3.3.2-v3.patch
          4 kB
          Chelsey Chang
        2. OOZIE-182-condor-3.3.2-v2.patch
          5 kB
          Chelsey Chang
        3. OOZIE-182-bigwheel-GA-4.0.0-v3.patch
          4 kB
          Chelsey Chang
        4. OOZIE-182-bigwheel-GA-4.0.0-v2.patch
          4 kB
          Chelsey Chang
        5. OOZIE-1734.patch
          4 kB
          Chelsey Chang

        Activity

          People

            checha Chelsey Chang
            checha Chelsey Chang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: