geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.
http://geoserver.org/geoserver-cloud
Other
244 stars 73 forks source link

datadir: fix unreleased lock on global.xml starting off an empt datadir #457

Closed groldan closed 4 months ago

groldan commented 4 months ago

DataDirectoryUpdateSequence initializes GeoServerInfo if not present with a zero'ed updateSequence.

In doing so, it was loading the global.xml through Resource.in():InputStream, which in turn automatically acquires a lock on the resource, but it was not closing it, which releases the lock.