Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5849

Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • Spark Submit
    • None

    Description

      SubmitRestProtocolMessage.parseAction casts the result of parse(json) to JObject, but this cast can fail if invalid requests can still be parsed as other JSON types, such as JSON strings. We should replace this unchecked cast with pattern-matching in order to handle these types of invalid requests.

      Attachments

        Activity

          People

            joshrosen Josh Rosen
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: