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

ASF GitHub Bot commented on HADOOP-14157:
-----------------------------------------

github-actions[bot] commented on PR #284:
URL: https://github.com/apache/hadoop/pull/284#issuecomment-3703100258

   We're closing this stale PR because it has been open for 100 days with no 
activity. This isn't a judgement on the merit of the PR in any way. It's just a 
way of keeping the PR queue manageable.
   If you feel like this was a mistake, or you would like to continue working 
on it, please feel free to re-open it and ask for a committer to remove the 
stale tag and review again.
   Thanks all for your contribution.




> FsUrlStreamHandlerFactory "Illegal character in path" parsing file URL on 
> Windows
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-14157
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14157
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.7.3, 2.6.5, 3.0.0-alpha2
>         Environment: Windows
>            Reporter: Simon Scott
>            Priority: Minor
>         Attachments: HADOOP-14157.001.patch
>
>
> After registering the FsUrlStreamHandlerFactory with the JVM, subsequent 
> calls to convert a "file" URL to a URI can fail with "Illegal character in 
> path" where the illegal character is a backslash.
> For example:
> {code}
> URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory());
> File file = new File("C:/Users");
> final URL url = new URL("file:///" + file.getAbsolutePath());
> {code}
> gives stack trace:
> {noformat}
> java.net.URISyntaxException: Illegal character in path at index 8: 
> file:/C:\Users
>     at java.net.URI$Parser.fail(URI.java:2848)
>     at java.net.URI$Parser.checkChars(URI.java:3021)
>     at java.net.URI$Parser.parseHierarchical(URI.java:3105)
>     at java.net.URI$Parser.parse(URI.java:3053)
>     at java.net.URI.<init>(URI.java:588)
>     at java.net.URL.toURI(URL.java:946)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to