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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • webapp
    • None
    • 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 Chundatt
        2. 0002-YARN-4746.patch
          9 kB
          Bibin Chundatt
        3. 0003-YARN-4746.patch
          13 kB
          Bibin Chundatt
        4. 0003-YARN-4746.patch
          13 kB
          Bibin Chundatt
        5. 0004-YARN-4746.patch
          16 kB
          Bibin Chundatt
        6. 0005-YARN-4746.patch
          17 kB
          Bibin Chundatt

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: