Files
spring-framework/spring-web
Brian Clozel f0f71009b2 Fix lost completion in PartGenerator CreateFileState
Prior to this commit, `CreateFileState.onComplete()` would only set
its own `completed` flag. If `fileCreated()` had already switched to
`WritingFileState`, the flag was written to a superseded state and the
completion signal was lost, so the part was never emitted.

This commit re-reads the current state after setting the flag and
delegates to it when it has changed, as `WritingFileState` does.

Fixes gh-37409
2026-10-06 17:11:20 +02:00
..