You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/02/08 13:54:07 UTC

[jira] [Updated] (SPARK-34151) Replaces `java.io.FIle.toURL` with `java.io.File.toURI.toURL`

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

Hyukjin Kwon updated SPARK-34151:
---------------------------------
    Fix Version/s: 3.1.1

> Replaces `java.io.FIle.toURL` with `java.io.File.toURI.toURL`
> -------------------------------------------------------------
>
>                 Key: SPARK-34151
>                 URL: https://issues.apache.org/jira/browse/SPARK-34151
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Minor
>             Fix For: 3.1.1, 3.1.2
>
>
> `java.io.FIle.toURL` method does not automatically escape characters that are illegal in URLs. It is recommended that new code convert an abstract pathname into a URL by first converting it into a URI, via the `toURI` method, and then converting the URI into a URL via the `URI.toURL` method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org