geonode icon indicating copy to clipboard operation
geonode copied to clipboard

image mosaic plugin layer if deleted, deletes whole database

Open majid-saeed opened this issue 3 years ago • 3 comments

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

  1. 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
  1. updatelayers
  2. delete the layer from geonode frontend

Specifications

  • GeoNode version: 3.2
  • Installation method : Manual
  • Platform: 20.04

majid-saeed avatar Jan 22 '22 09:01 majid-saeed

@majid-saeed thanks for reporting this. We're going to test and investigate it.

giohappy avatar Jan 24 '22 09:01 giohappy

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 avatar Jan 26 '22 10:01 majid-saeed

@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.

afabiani avatar Feb 28 '22 13:02 afabiani