Adopting Spring Boot Multipart Configuration for File Uploads - #16040
Adopting Spring Boot Multipart Configuration for File Uploads#16040gsartori wants to merge 32 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.0.x #16040 +/- ##
==================================================
+ Coverage 52.4207% 52.4781% +0.0573%
- Complexity 18319 18329 +10
==================================================
Files 2032 2033 +1
Lines 96294 96305 +11
Branches 16835 16837 +2
==================================================
+ Hits 50478 50539 +61
+ Misses 38394 38341 -53
- Partials 7422 7425 +3
🚀 New features to boost your workflow:
|
|
@martei I've added a paragraph in the upgrade guide here as well |
jdaugherty
left a comment
There was a problem hiding this comment.
This is a breaking change. I am ok with this but I would like to know if @jamesfredley is ok with this
…ith Grails config
…ith Grails config
…se-spring-upload-config
…ith Grails config
…se-spring-upload-config
|
@jdaugherty I think I need help with the failing tests since I didn't manage to understand the link between my code and the failures |
|
@jdaugherty @jamesfredley I've let AI fix the issue with the logger. I need someone to review the changes since this time I let her do the job altogether. Changes are small but I have no experience on that area. |
This reverts commit cf2e542.
|
@gsartori I reverted your last change. The tests are green now ✔️ |
jdaugherty
left a comment
There was a problem hiding this comment.
Remaining comments are about the migration surface and test coverage.
It looks like cf2e542 was pulled into this PR and then reverted by Mattias - we should be sure to squash this PR when merged.
c973b31 to
90dacd3
Compare
✅ All tests passed ✅🏷️ Commit: 90dacd3 Learn more about TestLens at testlens.app. |
Description
Fixes #15644.
This change delegates multipart upload configuration to Spring Boot instead of creating and configuring a Grails-specific
MultipartConfigElement.Applications should now use the standard
spring.servlet.multipartproperties:The previous
grails.controllers.uploadconfiguration namespace is no longer supported. If legacy properties are detected, application startup fails with migration instructions instead of silently ignoring them.The change also:
grails.config.Settings.MultipartConfigElement.GrailsHibernatePersistentEntityis not changed by these commits.Contributor Checklist
Issue and Scope
8.0.xmajor release branch, where breaking configuration changes are permitted.Code Quality
./gradlew build --rerun-tasks../gradlew codeStyleand resolved any violations.Licensing and Attribution
Documentation
grails.controllers.uploadtospring.servlet.multipart.