You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2015/02/17 00:00:12 UTC

[jira] [Updated] (SPARK-5849) Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction

     [ https://issues.apache.org/jira/browse/SPARK-5849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Rosen updated SPARK-5849:
------------------------------
    Summary: Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction  (was: Handle more types of invalid JSON in SubmitRestProtocolMessage.parseAction)

> Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-5849
>                 URL: https://issues.apache.org/jira/browse/SPARK-5849
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Submit
>    Affects Versions: 1.3.0
>            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