puppetlabs / puppetlabs/puppetlabs-stdlib

uriescape function deprecated on P7 - no alternative on P8

Open
#1,401 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community
Dominant language
Ruby
Stars
349
Forks
573
Avg merge
3d 3h
Merged PRs (30d)
1

Description

Describe the Bug

With puppet 8

# --- Caused by: ---
      # Puppet::ParseError:
      #   Puppet: This function is not available in Puppet 8. URI.escape no longer exists as of Ruby 3+.
      #   ./spec/fixtures/modules/stdlib/lib/puppet/parser/functions/uriescape.rb:23:in `block in <module:Functions>'

Environment

  • Puppet 8

I don't see any alternative function to use ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with spec/fixtures/modules/stdlib/lib/puppet/parser/functions/uriescape.rb and reproduce the reported failure under Puppet 8. Trace how the uriescape function handles URI.escape, then inspect nearby tests or fixtures for the expected behavior. Done means the function has a supported Puppet 8-compatible path with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.