-
-
Notifications
You must be signed in to change notification settings - Fork 455
Fix Spring 7 and Spring Boot 4 modules #4602
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
Fix Spring 7 and Spring Boot 4 modules #4602
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Fix Spring 7 and Spring Boot 4 modules ([#4602](https://github.com/getsentry/sentry-java/pull/4602)) If none of the above apply, you can opt out of this check by adding |
Performance metrics 🚀
|
c7988b5
to
a5d68ca
Compare
a5d68ca
to
7887992
Compare
e7a97e5
to
3ec789b
Compare
ddeada2
into
08-04-add_new_modules_for_spring_7_and_spring_boot_4
@@ -111,7 +111,7 @@ private void configureScope( | |||
final @NotNull IScopes scopes, final @NotNull HttpServletRequest request) { | |||
if (scopes.getOptions().isSendDefaultPii() | |||
&& qualifiesForCaching(request, scopes.getOptions().getMaxRequestBodySize())) { | |||
return new ContentCachingRequestWrapper(request); | |||
return new ContentCachingRequestWrapper(request, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Request Body Caching Limit Set Incorrectly
The ContentCachingRequestWrapper
constructor now hardcodes 0
as the cache limit. This likely disables or severely restricts request body caching, overriding the intended behavior determined by qualifiesForCaching
and the maxRequestBodySize
configuration (e.g., 1000 bytes for SMALL, 10000 for MEDIUM).
* Add new modules for Spring 7 and Spring Boot 4 * Fix Spring 7 and Spring Boot 4 modules (#4602) * Attempt to fix kotlin 2.2 issue (#4603) * Fix Spring 7 and Spring Boot 4 modules * Attempt to fix kotlin 2.2 issue * Second attempt to fix Kotlin 2.2 (#4610) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat (#4613) --------- Co-authored-by: Sentry Github Bot <[email protected]> * Address compose-related issues * Fix tests for Spring 7 and Spring Boot 4 (#4614) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat * Fix tests for Spring 7 and Spring Boot 4 * Move Spring 7 and Spring Boot 4 packages (#4615) * Move Spring 7 and Spring Boot 4 packages * Fix class not found due to OTel not supporting spring boot 4 yet (#4616) * Format code * some fixes * change kotlin 1.8 to 1.9 and some cleanup * ignore warnings about api level that is not relevant * fix optional dependencies in SentryAutoConfiguration * Update trace origin * Remove duplicate e2e test config * Update Strings for Spring 7 and Spring Boot 4 * Disable Spring Boot 4 agentless e2e tests for now --------- Co-authored-by: Sentry Github Bot <[email protected]> --------- Co-authored-by: Sentry Github Bot <[email protected]> Co-authored-by: markushi <[email protected]> * changelog * fix ci * add ignored span origins for Spring 7 and Spring Boot 4 * move changelog * Example how to fix version mismatch (#4642) * Fix ignored span origin * move changelog --------- Co-authored-by: Sentry Github Bot <[email protected]> Co-authored-by: markushi <[email protected]> Co-authored-by: Alex Alderman Webb <[email protected]>
📜 Description
.api
files💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps