Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8739

Illegal character `\r` can be contained in StagePage.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • Web UI, Windows
    • None
    • Windows

    Description

      There is a following code in StagePage.scala.

                         |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", " ")
      

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

      Attachments

        Activity

          People

            sarutak Kousuke Saruta
            sarutak Kousuke Saruta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: