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 b276e7ef21c62cdd491d3a7e0cbda156c1e05a47)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:40:00 +02:00
..
2025-04-01 19:09:00 +00:00
2024-02-08 09:35:39 -05:00
2025-03-31 12:27:55 -07:00
2024-01-04 11:53:38 +02:00
2025-03-31 12:27:55 -07:00
2024-09-03 15:14:15 +02:00
2024-04-19 09:52:14 +02:00
2024-11-27 08:09:50 -05:00
2024-07-11 09:39:56 -04:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2025-03-21 13:15:44 +01:00
2024-11-28 14:01:45 +03:00
2025-04-17 08:36:27 +02:00
2025-03-31 12:27:55 -07:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2025-03-31 12:27:55 -07:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2025-02-17 14:32:34 -05:00
2024-09-02 11:21:35 +01:00
2025-05-02 10:14:29 +00:00
2025-05-02 10:14:29 +00:00
2025-06-04 11:36:26 +02:00
2025-04-02 13:35:14 -07:00
2025-04-07 18:11:06 +02:00
2025-04-15 13:24:03 +02:00
2025-01-15 07:08:27 -05:00
2025-05-28 14:38:56 +00:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-11-01 18:53:08 +01:00
2024-01-04 11:53:38 +02:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-06-27 10:50:17 +02:00
2024-08-19 11:41:28 +02:00
2024-01-04 11:53:38 +02:00
2025-04-17 08:36:27 +02:00
2025-04-17 08:36:27 +02:00
2024-02-08 09:35:39 -05:00
2022-03-23 19:05:29 +01:00
2025-03-12 21:27:00 +01:00
2024-11-19 19:44:14 +01:00
2025-03-04 16:48:50 +01:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2025-03-12 21:27:00 +01:00
2024-02-08 09:35:39 -05:00
2024-04-10 11:55:35 +02:00
2024-02-08 09:35:39 -05:00
2025-04-02 13:35:14 -07:00
2025-04-17 08:36:27 +02:00
2024-01-04 11:53:38 +02:00
2025-04-04 14:42:20 +02:00
2025-04-02 13:35:14 -07:00
2024-09-03 15:14:15 +02:00
2024-09-20 15:19:22 +02:00
2024-01-04 11:53:38 +02:00
2024-10-30 13:35:56 +01:00
2024-02-08 09:35:39 -05:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-02-11 14:51:34 -05:00
2025-03-19 12:56:27 +01:00
2024-02-02 11:02:43 -05:00
2024-02-02 11:02:43 -05:00
2024-06-21 18:01:26 +02:00
2025-04-02 13:35:14 -07:00
2024-01-04 11:53:38 +02:00
2025-02-11 14:51:34 -05:00
2025-04-02 13:35:14 -07:00
2025-02-11 14:51:34 -05:00
2025-04-17 08:36:27 +02:00
2025-02-06 18:28:12 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 10:30:42 +02:00
2024-05-29 11:10:55 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-05-28 14:38:56 +00:00
2024-04-05 10:07:42 -04:00
2024-11-18 12:41:47 +01:00
2024-04-05 10:07:42 -04:00
2025-04-25 15:36:37 +00:00
2025-04-25 15:36:37 +00:00
2025-04-25 15:36:37 +00:00
2025-04-25 15:36:37 +00:00
2025-02-06 18:28:12 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-23 11:16:40 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2025-03-31 12:27:55 -07:00
2024-08-15 11:07:27 +02:00
2024-07-09 11:15:29 +02:00
2025-03-12 19:42:13 +01:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2025-06-04 11:40:00 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2025-04-02 13:35:14 -07:00
2025-04-11 17:19:38 +02:00
2024-02-08 09:35:39 -05:00
2025-04-02 13:35:14 -07:00
2025-03-24 17:44:43 +01:00
2025-03-24 17:44:43 +01:00
2025-05-20 16:59:30 +00:00
2025-05-20 16:59:30 +00:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2025-03-31 12:27:55 -07:00