spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-15209) Web UI's timeline visualizations fails to render if descriptions contain single quotes
Date Mon, 09 May 2016 03:37:13 GMT

    [ https://issues.apache.org/jira/browse/SPARK-15209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275908#comment-15275908
] 

Apache Spark commented on SPARK-15209:
--------------------------------------

User 'JoshRosen' has created a pull request for this issue:
https://github.com/apache/spark/pull/12995

> Web UI's timeline visualizations fails to render if descriptions contain single quotes
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-15209
>                 URL: https://issues.apache.org/jira/browse/SPARK-15209
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 1.6.1, 2.0.0
>            Reporter: Josh Rosen
>            Assignee: Josh Rosen
>
> If a Spark job's job description contains a single quote (') then the driver UI's job
event timeline will fail to render due to Javascript errors. To reproduce these symptoms,
run
> {code}
> sc.setJobDescription("double quote: \" ")
> sc.parallelize(1 to 10).count()
> sc.setJobDescription("single quote: ' ")
> sc.parallelize(1 to 10).count() 
> {code}
> and browse to the driver UI. This will currently result in an "Uncaught SyntaxError"
because the single quote is not escaped and ends up closing a Javascript string literal too
early.
> I think that a simple fix may be to change the relevant JS to use double quotes and then
to use the existing XML escaping logic to escape the string's contents.



--
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