Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 14, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

When adding or modifying a blob store, if an exception occurs after the
configuration has been persisted to disk, the stored XML file could be left
in an invalid state that prevents application startup on restart.

This prevents GeoServer to store invalid blob store configurations, for
as long as the BlobStore throws UnsuitableStorageException, in order not
to change the current logic.

This fix ensures that if save() or handleAddBlobStore()/handleModifyBlobStore()
fail, the persisted configuration is rolled back by re-saving the previous
valid state. Makes loadConfiguration() package-private with @VisibleForTesting
to allow tests to verify the persisted state matches expectations after rollback.
@pull pull bot locked and limited conversation to collaborators Oct 14, 2025
@pull pull bot added the ⤵️ pull label Oct 14, 2025
@pull pull bot merged commit ea17a67 into GeoCat:main Oct 14, 2025
10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant