Skip to content

--file treats query params in HTTP URLs as path assignments #928

Open
@mamachanko

Description

What steps did you take:

ytt the bootstrapper resources I am given by Tanzu Platform in form of a HTTP URL which contains query params

What happened:

ytt -f "https://example.com/?id=123&source=hello"
ytt: Error: Expected file 'https://example.com/?id=123&source=hello' to only have single '=' sign to for relative path assignment

What did you expect:

ytt fetches the file and templates it.

Anything else you would like to add:

I can workaround the issue with, say

http "https://example.com/?id=123&source=hello" | ytt -f-

Environment:

  • ytt version (use ytt --version): 0.50.0
  • OS (e.g. from /etc/os-release): macOS

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a defect or unexpected behaviorcarvel acceptedThis issue should be considered for future work and that the triage process has been completedgood first issueAn issue that will be a good candidate for a new contributorpriority/unprioritized-backlogHigher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.

    Type

    No type

    Projects

    • Status

      Unprioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions