-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix remote client rejecting empty --detach-keys string #27425
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
Fix remote client rejecting empty --detach-keys string #27425
Conversation
|
/approve |
Luap99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, can you squash your commits please into one and add Fixes: #27414 as part of the commit message to properly cross link the issue and have it closed on merge.
Honny1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
|
need to rebase: |
The remote client (podman --remote) was incorrectly throwing an error when --detach-keys="" was specified for attach, run, or start commands. According to documentation and the v1.7.0 release notes, specifying an empty string should disable detaching, not cause an error. Fixes: containers#27414 Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
061ed77 to
c0ae1a9
Compare
thanks i missed that done. |
Honny1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I am rerunning flaky tests.
Luap99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Honny1, Luap99, mheon, shiavm006 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Problem
The remote client (
podman --remote) incorrectly throws an error when--detach-keys=""is specified:According to the documentation (
docs/source/markdown/options/detach-keys.md):The remote client bindings call
term.ToBytes()directly on the user-provided string, which fails for empty strings. The local implementation checks for empty string first before callingterm.ToBytes().Solution
Added the same empty string check in
pkg/bindings/containers/attach.gothat exists in the local code path (libpod/oci_conmon_attach_common.go:199):Fixes: #27414