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

static catalogs cannot inline metadata for files requiring percent encoding

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.4.0
    • None
    • Not Needed
    • 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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support