File.open improperly locates files when using the file URI scheme in windows
----------------------------------------------------------------------------
Key: JRUBY-2591
URL: http://jira.codehaus.org/browse/JRUBY-2591
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: MS Windows XP
Reporter: brian doll
For a given file URI:
file_path = file://c:/foo
create a URI:
file_uri = URI.parse(file_path)
read the file:
File.open(file_uri.path).read
Get:
Errno::EACCESS exception, looking for "/foo"
In both mri and jruby, the file_uri.path equates to "/foo", but only in JRuby
does the File open fail.
test case requires that you are on windows and have a file at c:\foo
>> File.open(URI.parse("file://c:/foo").path).read
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email