Matthew Heon
61403afeaf
Fix SQLite volume lookup queries matching too liberally
...
Specifically, this does two things:
1. Turn on case-sensitive LIKE queries. Technically, this is not
specific to volumes, as it will also affect container and pod
lookups - but there, it only affects IDs. So `podman rm abc123`
will not be the same as `podman rm ABC123` but I don't think
anyone was manually entering uppercase SHA256 hash IDs so it
shouldn't matter.
2. Escape the _ and % characters in volume lookup queries. These
are SQLite wildcards, and meant that `podman volume rm test_1`
would also match `podman volume rm testa2` (or any character in
place of the underscore). This isn't done with pod and container
lookups, but again those just use LIKE for IDs - so technically
`podman volume rm abc_123` probably works and removes containers
with an ID matching that pattern... I don't think that matters
though.
Fixes #26168
Signed-off-by: Matthew Heon <matthew.heon@pm.me >
(cherry picked from commit b276e7ef21 )
Signed-off-by: Paul Holzinger <pholzing@redhat.com >
2025-06-04 11:40:00 +02:00
..
2024-09-05 10:40:07 -07:00
2023-02-20 14:51:04 +01:00
2023-04-11 09:15:05 -04:00
2025-04-22 12:52:04 +00:00
2023-01-26 22:20:15 +09:00
2024-02-27 04:30:26 -07:00
2025-03-12 19:42:14 +01:00
2025-04-17 10:36:21 -05:00
2025-01-09 18:47:37 +01:00
2024-11-24 22:00:31 -05:00
2024-08-19 11:41:29 +02:00
2025-04-11 16:15:16 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-05-02 10:14:29 +00:00
2025-03-31 12:27:55 -07:00
2025-04-16 16:17:28 +02:00
2024-10-16 10:15:19 -06:00
2025-03-31 12:30:43 -07:00
2025-03-31 12:30:43 -07:00
2025-03-26 11:01:18 +01:00
2024-08-19 11:41:29 +02:00
2024-09-09 06:16:20 -06:00
2024-10-01 07:54:52 -04:00
2025-06-04 11:37:08 +02:00
2025-03-14 10:37:59 -04:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-11-05 11:58:47 +00:00
2025-03-21 17:46:47 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-03-31 12:27:55 -07:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-04-03 15:52:05 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-30 14:48:30 -05:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-23 01:10:18 +01:00
2025-01-23 01:10:18 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-03-28 10:39:35 +01:00
2025-01-23 00:03:52 +01:00
2025-01-23 00:03:52 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-20 15:55:26 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-04-02 21:26:27 +08:00
2024-08-19 11:41:29 +02:00
2025-03-13 19:44:14 +01:00
2024-09-03 15:14:15 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-02-06 18:28:12 -05:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-04-21 17:07:57 -05:00
2025-03-02 19:47:44 +02:00
2025-02-06 00:39:51 +01:00
2025-02-06 00:39:51 +01:00
2024-11-29 12:40:49 +00:00
2025-04-22 12:52:04 +00:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-01-23 00:03:52 +01:00
2024-08-19 11:41:29 +02:00
2025-03-28 11:24:57 +01:00
2024-08-19 11:41:29 +02:00
2025-02-18 22:01:08 +01:00
2024-08-19 11:41:29 +02:00
2025-02-18 22:01:08 +01:00
2024-09-03 15:14:15 +02:00
2025-06-04 11:36:26 +02:00
2024-08-19 11:41:29 +02:00
2025-04-07 18:11:06 +02:00
2024-10-01 12:52:18 -07:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-10-15 15:17:50 +02:00
2024-08-19 11:41:29 +02:00
2025-05-28 14:38:56 +00:00
2025-02-05 22:52:46 +01:00
2025-01-08 10:08:29 +01:00
2025-03-26 17:57:52 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-02-28 16:58:06 +01:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-11-07 17:48:27 +01:00
2024-08-19 11:41:29 +02:00
2024-12-17 17:04:17 +01:00
2025-04-21 17:07:57 -05:00
2025-01-23 00:03:52 +01:00
2024-08-19 13:21:26 +00:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-05-02 10:14:29 +00:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2024-08-19 11:41:29 +02:00
2025-04-21 17:07:57 -05:00
2024-08-19 11:41:29 +02:00
2025-04-21 17:07:57 -05:00
2025-06-04 11:40:00 +02:00
2024-09-17 17:35:17 +02:00