Harden error handling when wms layers get map requests fails despite 200 ok #10701
Closed
1 task done
Labels
Accepted
BackportNeeded
Commits provided for an issue need to be backported to the milestone's stable branch
enhancement
Milestone
Description
There is a scenario where the get map returns an 200 ok with the xml content containing an exception.
In this case where headers are configured to use bearer token it will enter line 78 despite the content being an xml exception
MapStore2/web/client/components/map/openlayers/plugins/WMSLayer.js
Lines 72 to 87 in e0fbce0
this must be handled making sure it will dispatch a layer load error entering line 314
MapStore2/web/client/components/map/openlayers/Layer.jsx
Lines 306 to 320 in e0fbce0
this should
How to reproduce
Expected Result
Current Result
nothing happens, layers remain rendered in the mapo
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The text was updated successfully, but these errors were encountered: