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

CFE-2724: The arglist attribute now preserves spaces in arguments #5378

Merged
merged 4 commits into from
Jan 4, 2024

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Nov 17, 2023

cf-agent/vercmp.c Fixed Show fixed Hide fixed
cf-monitord/history.c Fixed Show fixed Hide fixed
cf-monitord/history.c Fixed Show fixed Hide fixed
@larsewi larsewi force-pushed the arglist branch 2 times, most recently from 515eb31 to f36d3f5 Compare November 17, 2023 14:07
@larsewi larsewi force-pushed the arglist branch 9 times, most recently from b01fae4 to 97b5381 Compare December 7, 2023 11:50
@larsewi larsewi marked this pull request as ready for review December 7, 2023 13:01
Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise, just small things.

cf-agent/verify_exec.c Outdated Show resolved Hide resolved
cf-agent/verify_exec.c Outdated Show resolved Hide resolved
cf-agent/verify_exec.c Outdated Show resolved Hide resolved
tests/acceptance/08_commands/arglist.cf Outdated Show resolved Hide resolved
vpodzime
vpodzime previously approved these changes Dec 8, 2023
Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

Looks good to me now. 🤞 for the tests to pass

This additional function argument enables us to avoid splitting
command-line arguments extracted from the `arglist` attribute in the
commands promise.

Ticket: CFE-2724
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
This additional function argument enables us to avoid splitting
command-line arguments extracted from the `arglist` attribute in the
commands promise.

Ticket: CFE-2724
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
@cfengine cfengine deleted a comment from cf-bottom Dec 12, 2023
@cfengine cfengine deleted a comment from cf-bottom Dec 12, 2023
@cfengine cfengine deleted a comment from cf-bottom Dec 12, 2023
@cfengine cfengine deleted a comment from cf-bottom Dec 12, 2023
@cfengine cfengine deleted a comment from cf-bottom Dec 12, 2023
@larsewi
Copy link
Contributor Author

larsewi commented Dec 12, 2023

@cf-bottom Jenkins please :)

Copy link
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

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

I thought I heard you say that preservation of white-space only works for commands that are not executed with a shell. Is that true? If so, can you amend your 4th commit to say so?

The `arglist attribute in the `commands` promises now preserves
whitespaces in the arguments. Whitespaces are currently not preserved on
Windows, or if the `useshell` attribute is set to anything other than
`"noshell"`. See ticket CFE-4294.

Ticket: CFE-2724
Changelog: Commit
Signed-off-by: Lars Erik Wik <[email protected]>
Added acceptance test checking that whitespaces are preserved by the
`arglist` attribute in the `commands` promises. Whitespaces are
currently not preserved on Windows, or if the `useshell` attribute is
set to anything other than `"noshell"`.

Ticket: CFE-2724
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
@cf-bottom
Copy link

@larsewi
Copy link
Contributor Author

larsewi commented Dec 15, 2023

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

@larsewi
Copy link
Contributor Author

larsewi commented Dec 20, 2023

Build Status

@larsewi larsewi requested a review from vpodzime December 20, 2023 14:54
@larsewi
Copy link
Contributor Author

larsewi commented Dec 27, 2023

Ping @vpodzime, @nickanderson

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

Looks good to me. @nickanderson may disagree, but I believe people should read changelogs and not rely on a clearly buggy behavior.

@olehermanse olehermanse merged commit 8b88c25 into cfengine:master Jan 4, 2024
48 of 49 checks passed
@larsewi larsewi deleted the arglist branch December 3, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants