spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Rosen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-5849) SubmitRestProtocolMessage should handle invalid requests that parse as JSON strings
Date Mon, 16 Feb 2015 22:53:11 GMT
Josh Rosen created SPARK-5849:
---------------------------------

             Summary: SubmitRestProtocolMessage should handle invalid requests that parse
as JSON strings
                 Key: SPARK-5849
                 URL: https://issues.apache.org/jira/browse/SPARK-5849
             Project: Spark
          Issue Type: Bug
          Components: Spark Submit
    Affects Versions: 1.30
            Reporter: Josh Rosen
            Assignee: Josh Rosen
            Priority: Critical


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message