Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Jetty process non-compliant URIs #1704

Merged
merged 6 commits into from
Mar 10, 2024

Conversation

afranken
Copy link
Member

@afranken afranken commented Mar 9, 2024

Description

Updating to Spring Boot 3.2 updated Jetty to v12. By default, Jetty will now refuse RFC-3986 non-compliant URIs, which leads to S3Mock refusing object keys that are valid according to S3 API docs.
Enable "legacy" compliance mode to allow those kinds of object keys.

Related Issue

$1686

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

Commented out. If this is enabled, S3Mock will log AT LOT more.
Enabling "legacy" UriCompliance: Some keys legal in S3 lead to local
URIs that are not compliant to RFC-3986. Jetty 12 by default returns
400s for these URIs.

Fixes #1686
Optimized some code.
Added extended tests for object keys.
Added more tests for ErrorResponses using AWS SDK v2
@afranken afranken self-assigned this Mar 9, 2024
@afranken afranken added the bug label Mar 9, 2024
@afranken afranken merged commit b52e9b7 into main Mar 10, 2024
6 checks passed
@afranken afranken deleted the 1686-enable-legacy-uri-formats-in-jetty branch March 10, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant