Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2468 Sqoop2: Make REST interface more resilient to various malformed inputs
  3. SQOOP-2688

Sqoop2: Provide utility method to safely retrieve value from JSONObject

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.7
    • None
    • None

    Description

      I've continued working on the umbrella JIRA SQOOP-2468 by injecting various invalid JSON snippets and I've noticed that is extremely easy to get NullPointerException. That is because we're anticipating certain structure in the JSON and we're not properly checking whether it's there or not.

      I would like to fix that by introducing util method that will properly verify if given key is available and whether it's of proper class instead of throwing not useful NullPointerException.

      Attachments

        1. SQOOP-2688.patch
          43 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: