Repository navigation
Report missing GWC tile layers and gridsets as not found when GeoServer answers 500 - #219
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depending on the order of the jars in
WEB-INF/lib, vanilla GeoServer answers GWC's not-found errors with500instead of404. Looking up or deleting a missing tile layer raised anHTTPError, andcreate_gridsetfailed 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
500with a body containing GWC's not-found message for a tile layer or gridset as404and log a warning; any other500still raises.