You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
this currently happens in a project and it require time to find a scenario to reproduce it in mapstore
anyway, if a wms layers generate a wms error, (maybe for a style that is missing)
it should generate this use case if not other ways have to be found
Expected Result
to have dispatched the layer load error
layers should stop rendering, should be hidden until an update to the view triggers an update of the layer so new requests comes in and a new check can be done
Current Result
nothing happens, layers remain rendered in the mapo
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: