You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/06/30 21:32:05 UTC

[jira] [Commented] (SPARK-8739) Illegal character `\r` can be contained in StagePage.

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

Apache Spark commented on SPARK-8739:
-------------------------------------

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

> Illegal character `\r` can be contained in StagePage.
> -----------------------------------------------------
>
>                 Key: SPARK-8739
>                 URL: https://issues.apache.org/jira/browse/SPARK-8739
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI, Windows
>    Affects Versions: 1.5.0
>         Environment: Windows
>            Reporter: Kousuke Saruta
>
> There is a following code in StagePage.scala.
> {code}
>                    |width="$serializationTimeProportion%"></rect>
>                  |<rect class="getting-result-time-proportion"
>                    |x="$gettingResultTimeProportionPos%" y="0px" height="26px"
>                    |width="$gettingResultTimeProportion%"></rect></svg>',
>                |'start': new Date($launchTime),
>                |'end': new Date($finishTime)
>              |}
>            |""".stripMargin.replaceAll("\n", " ")
> {code}
> The last `replaceAll("\n", "") doesn't work when we checkout and build source code on Windows and deploy on Linux.
> It's because when we checkout the source code on Windows, new-line-code is replaced with "\r\n" and replaceAll("\n", "") replaces only "\n".



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