Issue #20302 has been updated by Josh Cooper.

Target version set to 3.2.0

----------------------------------------
Bug #20302: Windows File.executable? now returns false on ruby 1.9
https://projects.puppetlabs.com/issues/20302#change-89695

* Author: Josh Cooper
* Status: Accepted
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 3.2.0
* Affected Puppet version: 3.2.0-rc1
* Keywords: windows
* Branch: 
----------------------------------------
There are various places in facter and puppet where we rely on File.executable? 
to return true, e.g. Puppet::Util.which?. In ruby 1.8, it always returned true, 
provided you could read the file. In 1.9, the file extension needs to be 
`.exe`, `.bat`, etc. The change was made in MRI ruby here: 
<http://bugs.ruby-lang.org/issues/show/2135>

However, this change can cause providers to no longer be suitable under ruby 
1.9, such as: 
<https://github.com/puppetlabs/puppet/blob/master/acceptance/tests/ticket_6907_use_provider_in_same_run_it_becomes_suitable.rb>.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to