Skip to content

JSON Values containing % get escaped to %25 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Suchiman opened this issue Mar 18, 2021 · 2 comments
Open

JSON Values containing % get escaped to %25 #33

Suchiman opened this issue Mar 18, 2021 · 2 comments
Assignees

Comments

@Suchiman
Copy link

Suchiman commented Mar 18, 2021

For example:

{
    "Test": "%"
}

will generate a json.Test variable with an value of %25
This is due to microsoft/azure-pipelines-task-lib#627 which happens here

@jeffpriz jeffpriz self-assigned this Apr 9, 2021
@jeffpriz
Copy link
Owner

jeffpriz commented Apr 9, 2021

because the microsoft library is escaping the value on me, I will have to think through an approach to handle this ... emitting a ## set variable command as they suggest may be painful :( sorry

@Bjego
Copy link

Bjego commented Aug 3, 2021

@Suchiman , you could use powershell core to easily parse json into variables on your own, as long this hasn't been fixed: https://bw861987.medium.com/azure-pipelines-reading-json-into-variables-with-a-6-liner-ready-to-parse-terraform-output-e906e6fd5b30

We had to replace the plugin in one of our pipelines as well, as it couldn't handle generated passwords containing %.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants