Untitled conversation
- User
[BUG] S3 dot-dot object requests return InvalidKey
Service
AWS API Action
Expected behavior
AWS behavior rejects object requests whose key causes a dot-dot path segment to appear in the request URI with HTTP 400 Bad Request and an empty response body.
Actual behavior
Floci returns an
InvalidKeyerror body:An error occurred (InvalidKey) when calling the PutObject operation: The specified key is invalid.Reproduction
printf 'safe-data' > body.txt aws --endpoint-url http://localhost:4566 s3api create-bucket \ --bucket raw-path-bucket aws --endpoint-url http://localhost:4566 s3api put-object \ --bucket raw-path-bucket \ --key ../bad.txt \ --body body.txtEnvironment
- Floci version / image tag: local Docker image built from main commit
a7b0826c - Java SDK version (if applicable): N/A; verified with AWS CLI
- How you're running Floci (Docker / native /
mvn quarkus:dev): Docker
Interface
No new interfaces are introduced.
- Floci version / image tag: local Docker image built from main commit
- Assistant
I’ll trace S3 raw-path handling and its tests, then make the narrow protocol fix and verify PutObject/DeleteObject behavior with focused tests.
- Assistant
The mismatch is localized: traversal validation throws the same
InvalidKeyexception used for genuine key/storage errors, and the controller’s generic catch serializes it as XML. I’m separating only the raw URI traversal rejection so otherInvalidKeyresponses remain unchanged. - Assistant
The implementation and test sources compile cleanly. The focused run then hit an uncached Maven test-provider dependency, so I stopped it and am continuing in offline mode to keep verification local.
- Assistant
The offline package now succeeds. Since the JUnit provider is not cached, I’m doing a local wire-level smoke check against the built emulator for both PUT and DELETE, including status and body length.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.