Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-09-02 Thread Josh Cooper (JIRA)
Title: Message Title










 

 Josh Cooper commented on an issue











 






  Re: Pluginsync notices on Windows reports file paths with forward slashes 










This is actually intentional. The first issue is that ruby defines File::SEPARATOR as forward slash everywhere, and File::ALT_SEPARATOR as backslash on windows, nil on other platforms. In other words, forward slashes are preferred and can be seen from:


irb(main):001:0> File.expand_path('C:\foo')
=> "C:/foo"



Nearly all Windows APIs dealing with filesystem paths accept forward and backslashes, e.g. CreateFile, etc. There are some parts of windows, namely legacy parts, that require backslashes, like msiexec.exe, cmd.exe, etc. In cases where we can, puppet will automatically backslashify, e.g. 

PUP-398
. Otherwise, it's up to the user to specify, e.g. install_options for a package.
Since we need a canonical file representation, and it's very likely module authors will end up with forward slashes, we've adopted forward slashes. This makes it possible to manage intra and intermodule relationships in a sane way, and generally simplifies things.
This is pretty clearly documented in https://docs.puppetlabs.com/puppet/3.6/reference/lang_windows_file_paths.html#directory-separators, so I'm going to close this as will not fix.












   

 Add Comment











 













 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 







 Pluginsync/loading facts notices on Windows output file paths with forward slashes:   {quote}  Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/prov

Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-08-11 Thread Rob Reynolds (JIRA)
Title: Message Title










 

 Rob Reynolds commented on an issue











 






  Re: Pluginsync notices on Windows reports file paths with forward slashes 










This might be nice with windows, but carries a fine line for fixes. The implementation should only convert these for the message it's reporting on (not the actual resource's path) and I'm really not sure if it should convert the File resource name.












   

 Add Comment











 













 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 







 Pluginsync/loading facts notices on Windows output file paths with forward slashes:   {quote}  Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/rabbitmq_ vhost]/ensure: removed  Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/concat_basedir.rb  {quote}  This is clearly a lie. When I copy those paths and try t...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@goo

Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-08-08 Thread Kylo Ginsberg (JIRA)
Title: Message Title










 

 Kylo Ginsberg commented on an issue











 






  Re: Pluginsync notices on Windows reports file paths with forward slashes 










Hmm that seems like it would be a nice improvement. Not sure if there are entanglements though. Rob Reynolds thoughts?












   

 Add Comment











 













 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 







 Pluginsync/loading facts notices on Windows output file paths with forward slashes:   {quote}  Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/rabbitmq_ vhost]/ensure: removed  Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/concat_basedir.rb  {quote}  This is clearly a lie. When I copy those paths and try t...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/

Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-08-08 Thread Chris Spence (JIRA)
Title: Message Title










 

 Chris Spence updated an issue











 






 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 










Change By:

 Chris Spence









 Pluginsync/loading facts notices on Windows output file paths with forward slashes: {quote} Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/rabbitmq_ vhost]/ensure: removedInfo: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/concat_basedir.rb {quote} This is clearly a lie.  When I copy those paths and try to use them, Windows gets angry at me.












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-08-08 Thread Chris Spence (JIRA)
Title: Message Title










 

 Chris Spence created an issue











 






 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 










Issue Type:

  Bug




Affects Versions:


 3.6.2




Assignee:

 Kylo Ginsberg




Components:


 Client




Created:


 08/Aug/14 4:31 AM




Priority:

  Normal




Reporter:

 Chris Spence










Pluginsync/loading facts notices on Windows output file paths with forward slashes:
`Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/rabbitmq_ vhost]/ensure: removed Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/concat_basedir.rb`
This is clearly a lie. When I copy those paths and try to use them, Windows gets angry at me.












   

 Add Comment


 

Jira (PUP-3037) Pluginsync notices on Windows reports file paths with forward slashes

2014-08-08 Thread Chris Spence (JIRA)
Title: Message Title










 

 Chris Spence updated an issue











 






 Puppet /  PUP-3037



  Pluginsync notices on Windows reports file paths with forward slashes 










Change By:

 Chris Spence









 Pluginsync/loading facts notices on Windows output file paths with forward slashes: ` Notice: /File[C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/rabbitmq_ vhost]/ensure: removedInfo: Loading facts in C:/ProgramData/PuppetLabs/puppet/var/lib/facter/concat_basedir.rb ` This is clearly a lie.  When I copy those paths and try to use them, Windows gets angry at me.












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.