Skip to content
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

api: handle newlines in JobSubmission vars correctly #23560

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

pkazmierczak
Copy link
Contributor

Fixes a bug where variable values in job submissions that contained newlines weren't encoded correctly, and thus jobs that contained them couldn't be resumed once stopped via the UI.

Internal ref: https://hashicorp.atlassian.net/browse/NET-9966

@pkazmierczak pkazmierczak self-assigned this Jul 11, 2024
@pkazmierczak pkazmierczak added backport/ent/1.6.x+ent Changes are backported to 1.6.x+ent backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.8.x backport to 1.8.x release line labels Jul 11, 2024
@pkazmierczak pkazmierczak added this to the 1.8.2 milestone Jul 11, 2024
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having a little trouble imagining a scenario in which multiline strings would be interpolated correctly when we render the HCL2. The reported issue doesn't seem to have an example of that, only submitting them without consuming them in the jobspec.

But this seems like a reasonable change anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.6.x+ent Changes are backported to 1.6.x+ent backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.8.x backport to 1.8.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants