Skip to content

SQLite RemoveVolume does not verify a volume was actually removed #28376

@mheon

Description

@mheon

Issue Description

The RemoveVolume function in SQLite does not validate the number of rows deleted, so it can return no error if no volume was actually removed. This should be fixed - we need to check that only 1 row was removed, and error otherwise.

Steps to reproduce the issue

N/A

Describe the results you received

N/A

Describe the results you expected

N/A

podman info output

N/A

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Metadata

Metadata

Assignees

Labels

ContribfestBugs for Contribfestkind/bugCategorizes issue or PR as related to a bug.volunteers-wantedIssues good for community/volunteer contributions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions