Issue Type: Bug Bug
Affects Versions: JRuby 1.7.1
Assignee: Thomas E Enebo
Created: 13/Jan/13 11:49 PM
Description:
% java -jar logstash-1.1.9-monolithic.jar irb
>> JRUBY_VERSION
=> "1.7.1"

>> path = "file:/home/jls/release/logstash-1.1.9-monolithic.jar!/gems/bson-1.8.1-java/lib/bson/../../ext/jbson/lib"
=> "file:/home/jls/release/logstash-1.1.9-monolithic.jar!/gems/bson-1.8.1-java/lib/bson/../../ext/jbson/lib"


# This should return true
>> File.directory?(path)
=> false

# But if you do expand_path on it to remove the '../../' stuff, it works.
>> File.directory?(File.expand_path(path))
=> true
Environment: logstash 1.1.9, OpenJDK 1.7.0_03, Linux
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to