Skip to content

Conversation

@geoserver-bot
Copy link
Collaborator

Backport #1440
Authored by: @groldan

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.
@groldan groldan merged commit a10e753 into 1.28.x Oct 14, 2025
10 checks passed
@groldan groldan deleted the backport-1440-to-1.28.x branch October 14, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants