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

static catalogs do not copy source host and port to content_uri

    Details

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

      Description

      If you define a file resource with a source parameter:

      file { '/tmp/file':
        ensure => file,
        source => 'puppet://host:8888/modules/foo/bar',
      }
      

      Then the content_uri omits the host and port:

        "content_uri": "puppet:///modules/foo/bar"
      

      which can cause the agent to retrieve the file from a different host/port than was originally specified.

      We should preserve the host and port. The reason we don't is because we call CGI.escape which corrupts the URI.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support