Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4746

yarn web services should convert parse failures of appId, appAttemptId and containerId to 400

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: webapp
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      I'm seeing somewhere in the WS API tests of mine an error with exception conversion of a bad app ID sent in as an argument to a GET. I know it's in ATS, but a scan of the core RM web services implies a same problem

      WebServices.parseApplicationId() uses ConverterUtils.toApplicationId to convert an argument; this throws IllegalArgumentException, which is then handled somewhere by jetty as a 500 error.

      In fact, it's a bad argument, which should be handled by returning a 400. This can be done by catching the raised argument and explicitly converting it

        Attachments

        1. 0001-YARN-4746.patch
          1 kB
          Bibin A Chundatt
        2. 0002-YARN-4746.patch
          9 kB
          Bibin A Chundatt
        3. 0003-YARN-4746.patch
          13 kB
          Bibin A Chundatt
        4. 0003-YARN-4746.patch
          13 kB
          Bibin A Chundatt
        5. 0004-YARN-4746.patch
          16 kB
          Bibin A Chundatt
        6. 0005-YARN-4746.patch
          17 kB
          Bibin A Chundatt

          Activity

            People

            • Assignee:
              bibinchundatt Bibin A Chundatt
              Reporter:
              stevel@apache.org Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: