[Geoserver-devel] [JIRA] (GEOS-10553) Importer replace fails with schema mismatch

Jody Garnett created an issue

GeoServer / BugGEOS-10553

Importer replace fails with schema mismatch

Issue Type:

BugBug

Affects Versions:

2.19.6, 2.21.0

Assignee:

Jody Garnett

Components:

Importer, PostGIS

Created:

20/Jun/22 9:53 AM

Priority:

MediumMedium

Reporter:

Jody Garnett

Use of replace is great for replacing contents, but fails with a schema mismatch if any attribute names have changed.

Suggested fix:

  1. If the schemas exactly match remove all rows (existing workflow)
  2. If schemas differ, remove all rows, updateSchema
  3. If updateSchema not implemented, remove feature source, create feature source
  4. If replace is used and table does not exist, just create feature source

And then add new rows like normal

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100201-sha1:07cea57)

Atlassian logo