Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Conversation

@dweomer
Copy link
Contributor

@dweomer dweomer commented Oct 17, 2021

The client attempts to "noramlize" image refs when deleting to allow for
shortened image identifiers to be passed. When passing an invalid image
ref this could result in the client requesting deletion of a nil image
from the server. The server now silently succeed and do nothing while
the client now checks for passing a nil image ref and lets the user know
that no such image could be found.

Fixes #80

Signed-off-by: Jacob Blain Christen [email protected]

The client attempts to "noramlize" image refs when deleting to allow for
shortened image identifiers to be passed. When passing an invalid image
ref this could result in the client requesting deletion of a nil image
from the server. The server now silently succeed and do nothing while
the client now checks for passing a nil image ref and lets the user know
that no such image could be found.

Fixes rancher#80

Signed-off-by: Jacob Blain Christen <[email protected]>
@dweomer dweomer merged commit e597b95 into rancher:main Oct 17, 2021
@dweomer dweomer deleted the fix/80/crash-when-rm-invalid-img branch October 17, 2021 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash removing invalid image

1 participant