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 2021/01/18 08:41:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17267085#comment-17267085 ] 

Apache Spark commented on SPARK-34151:
--------------------------------------

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

> 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
>            Priority: Minor
>
> `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