-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Return error in podman system service if URI scheme is not unix/tcp #16070
Return error in podman system service if URI scheme is not unix/tcp #16070
Conversation
Signed-off-by: Boaz Shuster <[email protected]>
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 but I'm wondering how many (if any) cases there are where this has somehow been working, and will now error out.
@edsantiago - that's what I thought too but I couldn't find any explanation/use-cases where other scheme/protocols are used. Would like to come up with a better solution, though. |
Hm. I think this is OK, but someone more familiar with remote should take a look. @baude PTAL |
This never worked since the listener var would be nil in this case -> therefore no socket/server |
Tests green, LGTM. |
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: boaz0, Luap99 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 |
If
tcp
orunix
are missing from the URIpodman
panics:The reason for that is because if the schema is not
unix
ortcp
the listener isnil
and atserver/server.go:65
listener.Addr()
is being called butlistener
isnil
Does this PR introduce a user-facing change?