ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21948] - PropertyTest.Test5 failing -trying to connect?
Date Thu, 31 Jul 2003 06:52:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21948>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21948

PropertyTest.Test5 failing -trying to connect?





------- Additional Comments From bodewig@apache.org  2003-07-31 06:52 -------
You know you shouldn't count on me when it comes to Windows 8-)

The reason I asked for the third slash is simply that this is required according
to URL syntax.  The file: scheme works similar to http:, it is
file://host/path - with the main difference that an empty host part means
localhost (or this machine or whatever).

If you have something like file://C:\Temp, the URL handling code witll look for
a host named C (don't know, maybe it's even trying tu use the colon as a
separator for the port?  scary).  The third slash prevents that.

On Unix you may even get away with four slashes as consecutive slashes are
usually collapsed into a single one and ls //tmp is the same as ls /tmp.
This would allow a hardcoded third slash.

Finally, the correct fix would be to run the code of FileUtils#toURI over
whatever you are passing to the url attribute.  Do we have a task for that?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message