-
Notifications
You must be signed in to change notification settings - Fork 410
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
GetFeatureInfo exceptions parameter format configuration #9466
Comments
Removing the We should: test forcing an error from GFI (E.g. breaking up the freemarker template) |
me and @mahmoudadel54 had a discussion over this task and we noticed that we can simply remove the exceptions parameter but then this has to be handled here differently MapStore2/web/client/epics/identify.js Lines 133 to 137 in 600b3bc
in particular from now on the gfi request will used the default value for exceptions when an exception happens. Consider also that the error info is not even used and those requests that fail or have some errors are simply filtered out here MapStore2/web/client/reducers/mapInfo.js Lines 79 to 85 in 600b3bc
resulting in the feature info (given only one layer failing) to open and close, immediately I was thinking that since we ignore the error exception we can show a notification message for each layer that fails with a message similar to this one: "The GFI request for the layer has failed and will be discarded" getfeatureInfo.mp4What do you think about it? there is also a weird behaviour with arcgis that if you use text/plain and you clicks where there is no data or outside layer extent, it will give 400 but using text/xml will returns valid empty body response |
To be clarified with @offtherailz if necessary.
Only if it does not imply big changes on the UI/UX (maybe you can clarify it better) and if we can strictly stay in the expected effort. Otherwise a dedicated issue must be opened for a future evolution.
That's another issue, not related to the subject of this one. Therefore, nothing to do for the moment. |
following a discussion with @offtherailz we suggest to something little different from above. @mahmoudadel54 you can do this
for any questions you can ask me or at @offtherailz |
I discussed with @MV88 about the solution proposed above, so I'm aware of it. |
…iguration Desription: - put a default format for GFI exceptions - add getIdentifyFlow to catch GFI errors and exceptions
Description: fix unit test failing results, create new unit test for getIdentifyFlow for wms
edit in wms-test of mapInfo file by adding a unit test for exception
…g format for mapInfo/wms-test
…ion (#9471) * #9466: GetFeatureInfo exceptions parameter format configuration Desription: - put a default format for GFI exceptions - add getIdentifyFlow to catch GFI errors and exceptions * #9466: resolve reviewer comments Description: fix unit test failing results, create new unit test for getIdentifyFlow for wms * resolve review comments add test cases for getIdentifyFlow in wms-test * #9466: resolve review comments edit in wms-test of mapInfo file by adding a unit test for exception * #9466: resolve eslint errors in unit test * #9466: add unit test for a exception response in string format for mapInfo/wms-test
…nfiguration Desription: - put a default format for GFI exceptions - add getIdentifyFlow to catch GFI errors and exceptions * geosolutions-it#9466: resolve reviewer comments Description: fix unit test failing results, create new unit test for getIdentifyFlow for wms * resolve review comments add test cases for getIdentifyFlow in wms-test * geosolutions-it#9466: resolve review comments edit in wms-test of mapInfo file by adding a unit test for exception * geosolutions-it#9466: resolve eslint errors in unit test * geosolutions-it#9466: add unit test for a exception response in string format for mapInfo/wms-test
…nfiguration Desription: - put a default format for GFI exceptions - add getIdentifyFlow to catch GFI errors and exceptions * geosolutions-it#9466: resolve reviewer comments Description: fix unit test failing results, create new unit test for getIdentifyFlow for wms * resolve review comments add test cases for getIdentifyFlow in wms-test * geosolutions-it#9466: resolve review comments edit in wms-test of mapInfo file by adding a unit test for exception * geosolutions-it#9466: resolve eslint errors in unit test * geosolutions-it#9466: add unit test for a exception response in string format for mapInfo/wms-test
) Desription: - put a default format for GFI exceptions - add getIdentifyFlow to catch GFI errors and exceptions * #9466: resolve reviewer comments Description: fix unit test failing results, create new unit test for getIdentifyFlow for wms * resolve review comments add test cases for getIdentifyFlow in wms-test * #9466: resolve review comments edit in wms-test of mapInfo file by adding a unit test for exception * #9466: resolve eslint errors in unit test * #9466: add unit test for a exception response in string format for mapInfo/wms-test
…ion (#9471) (#9802) Co-authored-by: mahmoud adel <[email protected]>
Hi
In MapStore we want to include webservices from "Digitaal Vlaanderen" (eg. https://geo.api.vlaanderen.be/dhmv/wms)
When MapStore sends a GetFeatureInfo request to those services, no result shows up in the identify panel. When taking a look at the response in the network tab of the browser, it is clear that an error occurred:
I see that MapStore adds to every GetFeatureInfo request the following parameter: "exceptions=application%2Fjson"
This parameter seems to be hardcoded in the file MapStore2\web\client\utils\mapinfo\wms.js
When taking a look at the service https://geo.api.vlaanderen.be/dhmv/wms?service=WMS&version=1.1.1&request=GetCapabilities, it is clear the exceptions parameter value that is being send by MapStore is not supported by the service:
For our own MapStore GeoServers, the format application/json is supported though, so we didn't experienced this problem in the past.
We had contact with the owner of the failing services and they are not planning to add support other exceptions parameters at short term.
In order to fix the issue of malfunctioning Identify, we think it is necessary to make some changes to MapStore to support other exceptions parameter and allowing to configure them (not hardcoded), or to be able to disable the exceptions parameter.
Or is there already a way to achieve this that I missed?
What is your option about this? Can you give an estimation on the work needed to be done for this feature request?
The text was updated successfully, but these errors were encountered: