api: Restrict additional query string arguments

All APIs except the root version APIs now use strict query string
parsing. A test is added to ensure same.

A couple of tests need to be updated since they were using the wrong
path: while the path is ignored when calling the controllers directly,
the query strings are not.

Change-Id: I6dcb5b8f1f865df8f6b17cd7f0d730c3bdff241e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-08-28 10:33:01 +01:00
parent b95a2c5219
commit 9c8d51fa0c
58 changed files with 386 additions and 164 deletions
@@ -8,4 +8,6 @@ features:
In addition, the ``rxtx_factor`` and ``OS-FLV-DISABLED:disabled`` fields
have been removed from all flavors responses, while the ``rxtx_factor``
field can no longer be provided when creating a server.
field can no longer be provided when creating a server. Finally, all APIs
now reject unknown query string parameters with a HTTP 400 (Bad Request)
error, building upon work first started in microversion 2.75.