Skip to content

Report missing GWC tile layers and gridsets as not found when GeoServer answers 500 - #219

Merged
groldan merged 1 commit into
masterfrom
fix/gwc-not-found-answered-as-500
Sep 22, 2026
Merged

groldan merged 1 commit into
masterfrom
fix/gwc-not-found-answered-as-500

Conversation

@groldan

@groldan groldan commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Depending on the order of the jars in WEB-INF/lib, vanilla GeoServer answers GWC's not-found errors with 500 instead of 404. Looking up or deleting a missing tile layer raised an HTTPError, and create_gridset failed instead of creating a gridset absent from the server; the GWC acceptance tests failed on GitHub runners for this reason while passing on other hosts.

Treat 500 with a body containing GWC's not-found message for a tile layer or gridset as 404 and log a warning; any other 500 still raises.

…er answers 500

Depending on the order of the jars in WEB-INF/lib, vanilla GeoServer answers
GWC's not-found errors with 500 instead of 404. Looking up or deleting a missing
tile layer raised an HTTPError, and create_gridset failed instead of creating a
gridset absent from the server; the GWC acceptance tests failed on GitHub
runners for this reason while passing on other hosts.

Treat 500 with a body containing GWC's not-found message for a tile layer or gridset
as 404 and log a warning; any other 500 still raises.
@groldan
groldan merged commit 19a8ddf into master Sep 22, 2026
2 checks passed
@groldan
groldan deleted the fix/gwc-not-found-answered-as-500 branch September 22, 2026 14:37
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.

1 participant