Comparing main...5.1.x · spring-projects/spring-data-rest · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spring-projects/spring-data-rest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: spring-projects/spring-data-rest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.1.x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 16 files changed
  • 3 contributors

Commits on Jun 9, 2026

  1. After release cleanups.

    See #2559
    christophstrobl committed Jun 9, 2026
    Configuration menu
    Copy the full SHA
    3dab7cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c33a1c View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2026

  1. Configuration menu
    Copy the full SHA
    505665e View commit details
    Browse the repository at this point in the history
  2. Publish link-save events with the value being saved.

    createPropertyReference(…) published BeforeLinkSaveEvent and AfterLinkSaveEvent with the property value captured before the submitted links were applied to the owning aggregate. For PUT on collection and map associations (which replace the value with a freshly created container) and for singular associations, that captured value was the previously linked one rather than the one being saved. Only the augmenting POST/PATCH case happened to reflect the new state, as it mutates the existing container in place.
    
    This left listeners (e.g. methods annotated with @HandleBeforeLinkSave) inspecting the event's linked argument unable to see the value actually being persisted.
    
    We now re-read the property after the links have been applied, so both events carry the value that is going to be saved, independent of the association's cardinality or the HTTP method used.
    
    Closes GH-1600, GH-1419.
    odrotbohm committed Jun 17, 2026
    Configuration menu
    Copy the full SHA
    d7e60af View commit details
    Browse the repository at this point in the history
Loading