We recently upgraded out ArcGIS Servers from version 10.6.1 to 10.9.1 (Linux) and since the upgrade, services won’t return a geojson response through WMS. When requesting an output of application/geojson on WMS version 1.3.0 we receive a Service Exception of "“InvalidFormat” : Parameter 'InfoFormat' contains unacceptable value.eg.
https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&version=1.3.0&request=GetFeatureInfo&layers=Thermal_Well&styles&crs=EPSG%3A3857&bbox=15823927.178137133,-3219853.1348547763,15887784.921106925,-3188589.4481924823&width=960&height=470&query_layers=Thermal_Well&feature_count=20&info_format=application%2Fgeojson&x=456&y=131Error:Parameter 'InfoFormat' contains unacceptable value.When performing the same request and querying an earlier version of the WMS (version 1.1.1) on ArcGIS Server 10.9.1, data will be returned - but in xml (rather than the requested geojson). The assumption is that this is just a fail through rather then the parameter issue reported in version 1.3.0.eg.https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&version=1.1.1&request=GetFeatureInfo&layers=Thermal_Well&styles&srs=EPSG%3A3857&bbox=15823927.178137133,-3219853.1348547763,15887784.921106925,-3188589.4481924823&width=960&height=470&query_layers=Thermal_Well&feature_count=20&info_format=application%2Fgeojson&x=456&y=131We use external getcapabilities files for our services and "application/geojson" is listed as a acceptable format.eg.application/vnd.esri.wms_raw_xmlapplication/vnd.esri.wms_featureinfo_xmlapplication/vnd.ogc.wms_xmlapplication/geojsontext/xmltext/htmltext/plainI have published the same service on a 10.6.1 server (using the same external getcapabilities files) and when performing the same queries listed above, it performed correctly and provided a geojson output.
This issue has been logged with ESRI and I am currently awaiting a response - just thought i would put it out and see if anyone else has experienced this?
Cheers,
Kat.
Update - this relates to BUG-000144235
Further troubleshooting this morning. This appears to relate to a shift in syntax for requests in 10.9+. We were able to determine that modifying the request to the updated formatting of "application/geo+json" using the ASCII code for special characters i.e "+" equates to "%2B" would allow this request to be performed.
eg. info_format=application%2Fgeo%2Bjson
Updated (working) Request:https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&version=1.3.0&request=GetFeatureInfo&layers=Thermal_Well&styles&crs=EPSG%3A3857&bbox=15823927.178137133,-3219853.1348547763,15887784.921106925,-3188589.4481924823&width=960&height=470&query_layers=Thermal_Well&feature_count=20&info_format=application%2Fgeo%2Bjson&x=456&y=131
Just for reference:
https://support.esri.com/en-us/bug/the-infoformat-parameter-containing-an-unacceptable-val-bug-000144235
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.