Mary Walton ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5fbc0cbe3b4f590068934353
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10660?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 ) GEOS-10660 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10660?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 ) REST API and Admin UI 'recalculate attributes' does not work ( 
https://osgeo-org.atlassian.net/browse/GEOS-10660?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.21.0 Assignee: Unassigned Components: REST, 
UI Created: 20/Sep/22 2:50 PM Environment:

Windows 10 Enterprise
Geoserver 2.21.0 installed within Apache Tomcat 9.0.65
Postgres v13.7 with PostGIS

Priority: High Reporter: Mary Walton ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5fbc0cbe3b4f590068934353
 )

When trying to recalculate a layers' attributes via the Geoserver Admin UI or 
the REST API, the attributes are not refreshed as expected. If you delete the 
layer and republish, it picks up the changes but this is not the desired 
workflow.

The layer is from a Postgres v13.7 database with PostGIS and the data changes 
within the database as expected.

This is the REST API call being used:
http://localhost:8080/geoserver/rest/workspaces/ ( 
http://localhost:8080/geoserver/rest/workspaces/ )

{workspace}

/datastores/

{datastorename}

/featuretypes/

{featuretypename}

?recalculate=nativebbox,latlonbox,attributes

With workspace, datastorename and featuretypename filled in with correct values.

In the UI:
Go to Layers >

{Layer name}

> Scroll down to Feature Type Details > Click Reload feature type...

( 
https://osgeo-org.atlassian.net/browse/GEOS-10660#add-comment?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10660#add-comment?atlOrigin=eyJpIjoiYjY2NzEwNGM5NWM3NDlmMGI3ZWU3YzBhZWVmZDg2NmQiLCJwIjoiaiJ9
 )

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#100207- 
sha1:866f7d8 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to