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
Issue:
In Geoview, identify requests (clicking on a feature from an ESRI REST layer) using layerDefs fail on ArcGIS Server 10.6.1 with a 400 Bad Request error but work on 10.8.1. The issue is due to characters {} not being encoded as %7B and %7D in the request.
Technical Details:
A request using standard JSON formatting fails on 10.6.1:
Update Geoview to always encode {} as %7B and %7D in layerDefs parameter for all "identify" requests, ensuring compatibility with all ArcGIS Server versions.
This fix will make Geoview more robust and prevent errors when querying different ArcGIS environments.
Is there an existing issue for this?
Current Behavior
Issue:
In Geoview, identify requests (clicking on a feature from an ESRI REST layer) using layerDefs fail on ArcGIS Server 10.6.1 with a 400 Bad Request error but work on 10.8.1. The issue is due to characters {} not being encoded as %7B and %7D in the request.
Technical Details:
A request using standard JSON formatting fails on 10.6.1:
https://server/identify?layerDefs={"2":"(1=1)"}
However, encoding {} resolves the issue:
https://server/identify?layerDefs=%7B%222%22%3A%22(1%3D1)%22%7D
Impact:
Requests fail on 10.6.1 but succeed on 10.8.1.
Example request (not working on 10.6, only on 10.8):
https://nronk1awvasp039.nrn.nrcan.gc.ca:6443/arcgis/rest/services/GeoAnalytics/earthquakes/MapServer/identify?f=json&tolerance=7&mapExtent=-166.11964430072757,34.999999999999986,-23.880355699272435,79.06062444403463&imageDisplay=1173,800,96&layers=visible:2&layerDefs={%222%22:%20%22(1=1)%22}&geometryType=esriGeometryPoint&geometry=-90.4527081649151,77.40657435390264&returnGeometry=false&sr=4326&returnFieldName=true
Expected Behavior
Update Geoview to always encode {} as %7B and %7D in layerDefs parameter for all "identify" requests, ensuring compatibility with all ArcGIS Server versions.
This fix will make Geoview more robust and prevent errors when querying different ArcGIS environments.
Example request (working on both 10.6 and 10.8):
https://nronk1awvasp039.nrn.nrcan.gc.ca:6443/arcgis/rest/services/GeoAnalytics/earthquakes/MapServer/identify?f=json&tolerance=7&mapExtent=-166.11964430072757,34.999999999999986,-23.880355699272435,79.06062444403463&imageDisplay=1173,800,96&layers=visible:2&layerDefs=%7B%222%22%3A%22(1%3D1)%22%7D&geometryType=esriGeometryPoint&geometry=-90.4527081649151,77.40657435390264&returnGeometry=false&sr=4326&returnFieldName=true
Steps To Reproduce
Anything else?
No response
The text was updated successfully, but these errors were encountered: