Skip to content

Replace cascaded WMS and WMTS layer update method of DELETE + POST to single PUT - #216

Merged
groldan merged 1 commit into
masterfrom
GSBAB-363-Incomplete-GWC-after-reinitialization
Sep 23, 2026
Merged

groldan merged 1 commit into
masterfrom
GSBAB-363-Incomplete-GWC-after-reinitialization

Conversation

@domfre

@domfre domfre commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

This PR replaces the DELETE + POST mechanism by a PUT in the create_wmts_layer method of the restservice.py

@domfre
domfre marked this pull request as ready for review September 11, 2026 06:58
@domfre
domfre requested a review from groldan September 11, 2026 06:59
@domfre

domfre commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

@groldan

Hello Gabriel, since the upgrade of the gs cloud images (due to the security patch) to version 2.28.5.0 in the babs_sdi project we are encountering gwc issues. When we reinitalize the gs cloud instance, some layers get deleted in the gwc and some remain. The problem seems to be related to gwc events getting triggered due to the DELETE + POST mechanism in the create_wmts_layer in the python-geoservercloud lib. I could resolve the issue by replacing the mechanism by a PUT but now the acceptance tests in this library for the gwc round trips are failing and I cannot figure out why. Do you have any idea what causes the acceptance tests to fail?

@domfre
domfre force-pushed the GSBAB-363-Incomplete-GWC-after-reinitialization branch from 9bad817 to 506b183 Compare September 23, 2026 07:21
… single PUT

Publishing a cascaded WMS or WMTS layer that already existed deleted it with
recurse and created it again. The new layer took a new id, left its tile layer
and every tile cached under it behind, discarded settings absent from the
payload, and failed outright for a layer referenced by a layer group.

Publish a cascaded WMS or WMTS layer that already exists in place, keeping its
id, its tile layer with the tiles cached under it, and the settings absent from
the payload.
@groldan
groldan force-pushed the GSBAB-363-Incomplete-GWC-after-reinitialization branch from 506b183 to 0083670 Compare September 23, 2026 22:22
@groldan groldan changed the title GSBAB-363 Introduce put for wmts layers Replace cascaded WMS and WMTS layer update method of DELETE + POST to single PUT Sep 23, 2026
@groldan
groldan merged commit 250c038 into master Sep 23, 2026
2 of 6 checks passed
@groldan
groldan deleted the GSBAB-363-Incomplete-GWC-after-reinitialization branch September 23, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants