mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(core): pass the presigned credential of a Query POST to its handler (#6073)
* fix(core): pass the presigned credential of a Query POST to its handler * test(core): sign the presigned Query POST test like a real client
This commit is contained in:
1 parent
b8d87df054
commit
32b64e5e41
2 files changed
+23
No files matched your search
@@ -137,8 +137,13 @@ public class AwsQueryController {
|
||||
@Produces(MediaType.APPLICATION_XML)
|
||||
public Response dispatch(
|
||||
@HeaderParam("Authorization") String authorization,
|
||||
@Context UriInfo uriInfo,
|
||||
MultivaluedMap<String, String> formParams) {
|
||||
return dispatch(IamEnforcementFilter.requestAuthorization(authorization, uriInfo.getQueryParameters()),
|
||||
formParams);
|
||||
}
|
||||
|
||||
private Response dispatch(String authorization, MultivaluedMap<String, String> formParams) {
|
||||
String action = AwsQueryServiceResolver.action(formParams);
|
||||
if (action == null) {
|
||||
return xmlErrorResponse("MissingAction",
|
||||
|
||||
Reference in new issue
Block a user