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 error mapping, then add focused PutObject/DeleteObject coverage and run the narrow S3 tests.
- Assistant
The mismatch is localized: traversal is currently converted into an
AwsException("InvalidKey"), which the REST-XML mapper serializes. I’m separating this URI-level rejection from ordinary invalid-key validation so only dot-dot request paths produce a bare 400. - Assistant
The focused regression suite is running now. The implementation preserves XML
InvalidKeyresponses for malformed keys such as null bytes, while dot-dot paths use the AWS-compatible empty 400 response. - Assistant
Compilation succeeded, but the local Maven cache is missing Surefire’s JUnit-platform provider, so the tests cannot execute in offline mode. I’ve kept Maven offline as required and am completing static/diff verification plus a compile/package check.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.