[
https://issues.apache.org/jira/browse/SPARK-15209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kousuke Saruta resolved SPARK-15209.
------------------------------------
Resolution: Fixed
> 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
> Fix For: 1.6.2, 2.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]