mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix: route SQS JSON 1.0 requests sent to queue URL path correctly (#99) * fix: route SQS JSON 1.0 requests sent to queue URL path correctly Newer AWS SDKs (e.g. aws-sdk-sqs Ruby gem >= 1.71) send JSON 1.0 requests to the queue URL path (/{accountId}/{queueName}) rather than POST /. These were matched by S3Controller's /{bucket}/{key:.+} handler, returning NoSuchBucket or InvalidArgument XML errors. Added a @PreMatching ContainerRequestFilter (SqsQueueUrlFilter) that rewrites the request URI to POST / before JAX-RS routing when both Content-Type is application/x-amz-json-1.0 and X-Amz-Target starts with AmazonSQS. The existing AwsJsonController dispatcher then handles the request normally. A @Consumes-based approach was attempted first but is ineffective in RESTEasy Reactive: @Consumes only affects method selection within a class, not between competing resource classes, so S3Controller was still selected at the class-routing stage. Closes #17