Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2687

File Names with "?" cause failures with recursive copies

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.8.1, PUP 4.2.1
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:

      Description

      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>

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  redmine.exporter redmine.exporter
                  QA Contact:
                  Narmadha Perumal
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated: