Issue #22212 has been updated by Tristan Helmich.

running the puppet master with `strace -e open puppet master --no-daemonize 
--debug` I noticed that the puppet master is trying to open the correct file ( 
"foo/test?moretest" in this case):
<pre>
open("/etc/puppet/environments/dev/modules/foobar/files/foo/foo&bar", O_RDONLY) 
= 6
open("/etc/puppet/environments/dev/modules/foobar/files/foo/test?moretest", 
O_RDONLY) = 6
open("/etc/puppet/environments/dev/modules/foobar/files/foo/c", O_RDONLY) = 6
open("/etc/puppet/environments/dev/modules/foobar/files/foo/b", O_RDONLY) = 6
open("/etc/puppet/environments/dev/modules/foobar/files/foo/a", O_RDONLY) = 6
Debug: file_metadata supports formats: pson yaml b64_zlib_yaml raw
Notice: Not Found: Could not find file_content modules/foobar/foo/test
</pre>

----------------------------------------
Bug #22212: File Names with "?" Cause Failures (puppet:// fileserving a 
directory)
https://projects.puppetlabs.com/issues/22212#change-98277

* Author: Celia Cottle
* Status: Needs More Information
* Priority: Normal
* Assignee: Celia Cottle
* Category: fileserving
* Target version: 
* Affected Puppet version: 3.2.4
* Keywords: customer
file
fileserver
?
* Branch: 
----------------------------------------
File names that contain "?" cause runs to fail and reports that it can't find a 
file name by section before the ?, and seemingly drops the ? and anything after.

Example code:
<pre>
file { '/tmp/foo':                                                              
  ensure  => directory,                                                         
  recurse => true,                                                              
  purge   => true,                                                              
  force   => true,                                                              
  owner   => 'root',                                                            
  group   => 'root',                                                            
  mode    => '0644',                                                            
  source  => "puppet:///modules/foobar/foo",                                    
                                    
}
</pre>

Example directory/file structure:
<pre>
├── foobar
│   └── files
│       └── foo
│           ├── a
│           ├── b
│           ├── c
│           └── test?moretest

</pre>

Error:
<pre>
Error: Could not set 'file' on ensure: Error 404 on SERVER: Not Found: Could 
not find file_content modules/foobar/foo/test
Error: Could not set 'file' on ensure: Error 404 on SERVER: Not Found: Could 
not find file_content modules/foobar/foo/test
Wrapped exception:
Error 404 on SERVER: Not Found: Could not find file_content 
modules/foobar/foo/test
Error: /File[/tmp/foo/test?moretest]/ensure: change from absent to file failed: 
Could not set 'file' on ensure: Error 404 on SERVER: Not Found: Could not find 
file_content modules/foobar/foo/test
</pre>


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to