Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10701 enabling failures for wms requests with exception, for ImageWMS sources #10702

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Nov 29, 2024

Description

Fix #10701 enabling failures for wms requests with exception, for ImageWMS sources

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#10701

What is the new behavior?

now it correctly triggers layerLoadError

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@MV88 MV88 added this to the 2025.01.00 milestone Nov 29, 2024
@MV88 MV88 self-assigned this Nov 29, 2024
@tdipisa tdipisa requested a review from offtherailz December 2, 2024 08:43
Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment inline.
Just move the function in a proper file, and document it, for future improvements.

@@ -13,3 +13,7 @@ export const VECTOR_FORMATS = [
];

export const isVectorFormat = (format) => VECTOR_FORMATS.indexOf(format) !== -1;

export const isValidResponse = (response) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a utility of vector tiles, but of WMS, so move this file.
Btw, even if I previously though that XML forma was enough, looking better, the WMS protocol tells to specify the format in the parameter.
https://docs.geoserver.org/main/en/user/services/wms/reference.html#exceptions

So let's document it a little, including what to improv. Something like "OGC protocol returns status = 200 with Exception in body, this function checks if the exception....".

@MV88 MV88 requested a review from offtherailz December 3, 2024 15:08
@tdipisa tdipisa added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Dec 4, 2024
Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean up vector tyle utils and move the test to WMSUtils tests

@offtherailz offtherailz enabled auto-merge (squash) December 4, 2024 17:40
@offtherailz offtherailz merged commit 80b7ceb into geosolutions-it:master Dec 4, 2024
5 checks passed
@MV88
Copy link
Contributor Author

MV88 commented Dec 5, 2024

@ElenaGallo testable in DEV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harden error handling when wms layers get map requests fails despite 200 ok
3 participants