geonode
geonode copied to clipboard
image mosaic plugin layer if deleted, deletes whole database
Expected Behavior
If a new image mosaic layer is created with indexer.properties pointing to the same database as of geonode's default database. when it is deleted it should only delete the granule indexes instead of complete database.
Actual Behavior
When the layer is deleted from geonode, whole database gets deleted.
Steps to Reproduce the Problem
- Follow Using the ImageMosaic plugin for raster time-series data datastore.properties
SPI=org.geotools.data.postgis.PostgisNGDataStoreFactory
host=localhost
port=5432
database=geonode_data
schema=public
user=geonode
passwd=geonode
Loose\ bbox=true
Estimated\ extends=false
validate\ connections=true
Connection\ timeout=10
preparedStatements=true
- updatelayers
- delete the layer from geonode frontend
Specifications
- GeoNode version: 3.2
- Installation method : Manual
- Platform: 20.04
@majid-saeed thanks for reporting this. We're going to test and investigate it.
It actually deletes every database attached to it. It should be explored and until then should be used with caution to not point to the default database and always make a new database for each image mosaic layer.
@majid-saeed @giohappy so far this looks to be an error with the ImageMosaic
plugin on GeoServer.
We are trying to understand the best way to get this one fixed.