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

static catalogs cannot inline metadata for files requiring percent encoding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.4.0
    • Component/s: None
    • Labels:
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      Bug on unreleased feature.

      Description

      If you try to manage a file with characters like ' ' which must be percent encoded in a URI:

        file { '/tmp/file':
          ensure  => file,
          source  => 'puppet:///modules/ntp/ntp d.conf',
        }
      

      Then the compiler will fail to inline metadata:

      Error: Could not understand URI puppet:///modules/ntp/files/ntp d.conf: bad URI(is not URI?): puppet:///modules/ntp/files/ntp d.conf
      /Users/josh/work/puppet/lib/puppet/file_serving/metadata.rb:36:in `rescue in content_uri='
      /Users/josh/work/puppet/lib/puppet/file_serving/metadata.rb:33:in `content_uri='
      /Users/josh/work/puppet/lib/puppet/indirector/catalog/compiler.rb:236:in `block in inline_metadata'
      /Users/josh/work/puppet/lib/puppet/indirector/catalog/compiler.rb:159:in `each'
      ...
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                josh Josh Cooper
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support