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

Special Character File Names Fail when Copying

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.10.1
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • QA Risk Assessment:
      Needs Assessment

      Description

      I have a ticket from a user on PE 3.7.
      They have created a module that copies a list of files from one location to another. The file names are a lot of special characters in a string (i.e

      *_!'`!~!"1!#4!b@"p!(@!.g"s!'w!.g"p!(:!}@"0!#4!}@"y!':!a!"p!(}!~@!u!'g!}@"u!'@!b!"l!()!cw!u!'0!a@"4!'`!cg!u!&@!cg"h!':!aw";!'`!cw"z!'%!~w"l!%8!d@"0!(!!d@"0!&:!d!"y!'`!}@"t!&c!cg"p!(@!~@"y*). 
      

      When running the module on 3.7 or 3.8 it spits back an error message saying:

      ' Error: /Stage[main]/Main/File[files]: Failed to generate additional resources using 'eval_generate': Parameter source failed on File[/etc/puppetlabs/puppet/environments/production/modules/test/files/_!'`!~!"1!#4!b@"p!(@!.g"s!'w!.g"p!(:!~!"z!#4!b@"h!'`!cw"0!()!bw!u!(:!e@"z!(@!~@"t!#4!^@"h!'`!cw"0!()!bw"]!'`!c@"1!'`!cw"0!%g!}@"u!'@!b!"l!()!^@"h!'4!}@"n!'`!cg==]: Could not understand source file:/etc/puppetlabs/puppet/environments/production/modules/test/manifests/files/_!'`!~!"1!#4!b@"p!(@!.g"s!'w!.g"p!(:!~!"z!#4!b@"h!'`!cw"0!()!bw!u!(:!e@"z!(@!~@"t!#4!^@"h!'`!cw"0!()!bw"]!'`!c@"1!'`!cw"0!%g!}@"u!'@!b!"l!()!^@"h!'4!}@"n!'`!cg==: bad URI(is not URI?): file:/etc/puppetlabs/puppet/environments/production/modules/test/manifests/files/_!'%60!~!%221!%234!b@%22p!(@!.g%22s!'w!.g%22p!(:!~!%22z!%234!b@%22h!'%60!cw%220!()!bw!u!(:!e@%22z!(@!~@%22t!%234!%5E@%22h!'%60!cw%220!()!bw%22]!'%60!c@%221!'%60!cw%220!%25g!%7D@%22u!'@!b!%22l!()!%5E@%22h!'4!%7D@%22n!'%60!cg==' '
      

      When the same test is ran on PE 2017.2.1 the following more generic error message is displayed:

      root@pe-201721-master tmp]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for pe-201721-master.puppetdebug.vlan
      Info: Applying configuration version '1495448343'
      Error: /Stage[main]/Test/File[footprint: data]: Could not evaluate: Could not retrieve information from environment production source(s) file:/etc/puppetlabs/puppet/environments/production/modules/test/files
      Notice: Applied catalog in 9.98 seconds
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                danny.mcilhagga Daniel Mcilhagga
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support