Jody Garnett ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3 ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) / Bug ( https://osgeo-org.atlassian.net/browse/GEOS-10553?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) GEOS-10553 ( https://osgeo-org.atlassian.net/browse/GEOS-10553?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) Importer replace fails with schema mismatch ( https://osgeo-org.atlassian.net/browse/GEOS-10553?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) Issue Type: Bug Affects Versions: 2.19.6, 2.21.0 Assignee: Jody Garnett ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3 ) Components: Importer, PostGIS Created: 20/Jun/22 9:53 AM Priority: Medium Reporter: Jody Garnett ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3 ) Use of replace is great for replacing contents, but fails with a schema mismatch if any attribute names have changed. Suggested fix: * If the schemas exactly match remove all rows (existing workflow) * If schemas differ, remove all rows, updateSchema * If updateSchema not implemented, remove feature source, create feature source * If replace is used and table does not exist, just create feature source And then add new rows like normal ( https://osgeo-org.atlassian.net/browse/GEOS-10553#add-comment?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10553#add-comment?atlOrigin=eyJpIjoiMTMwMGVkMWViYTg1NDBiM2E5NjJjMDViYTQ5YTQwNjEiLCJwIjoiaiJ9 ) Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100201- sha1:07cea57 )
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel