Issue #20302 has been updated by Jeff McCune. Status changed from Accepted to In Topic Branch Pending Review Branch set to https://github.com/puppetlabs/puppet/pull/1621
Topic branch at: <https://github.com/puppetlabs/puppet/pull/1621> There really isn't a bug as far as we can tell, it's just a bad test that we've fixed. It probably is worth checking over other uses of `File.executable?` for MRI 1.8.7 compatibility, but we feel that's a separate issue from this issue. ---------------------------------------- Bug #20302: Windows File.executable? now returns false on ruby 1.9 https://projects.puppetlabs.com/issues/20302#change-90045 * Author: Josh Cooper * Status: In Topic Branch Pending Review * Priority: Normal * Assignee: * Category: * Target version: 3.2.0 * Affected Puppet version: 3.2.0-rc1 * Keywords: windows * Branch: https://github.com/puppetlabs/puppet/pull/1621 ---------------------------------------- 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.
