Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI.makeAbsoluteURI does not handle local windows filepaths properly #139

Open
darronschall opened this issue Jul 28, 2010 · 2 comments
Open

Comments

@darronschall
Copy link
Contributor

Originally filed by gae.local.test on 2010-07-12T05:40:26

_uri1 = new URI("example.txt");
_url2 = new URI("file://C:/path/to/aDifferentExample.txt");
_uri1.makeAbsoluteURI(_url2 ).toString() returns the string "file://c/path/toexample.txt"

expected output --> string "file://c:/path/to/toexample.txt" (notice the colon in c:/)

I copy and pasted trace output and then shortened for readability. The problem is that the method is removing the colon after the drive identifier.

I am using the current revision at revision 118 according to tortoise svn

@darronschall
Copy link
Contributor Author

Updated by gae.local.test on 2010-07-12T05:41:54

I made copy and paste errors. The only thing that is wrong with the string it prints out is the missing colon after the drive letter. I can't edit my post to fix it.

@LexLythius
Copy link

Please note that
file://c:/path/to/toexample.txt
is actually a broken URI. It should encode to
file:///c:/path/to/toexample.txt
which equates to
file://localhost/c:/path/to/toexample.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants