漏洞 ID 编号 |
BUG-000143029 |
已提交 | September 20, 2021 |
上次修改时间 | June 5, 2024 |
适用范围 | ArcGIS Online |
找到的版本 | 9.2 |
操作系统 | Windows OS |
操作系统版本 | 10.0 |
修正版本 | October 2021 |
状态 | Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
|
解决办法
For this test case, the routing service can find the route if the "Use Preffered Truck Routes" restriction attribute is not specified as part of the travelMode parameter. Send the modified parameters from below as a POST request again, and the route is returned.
1. Generate an ArcGIS Online token (POST request) with the following parameters below:
- Request URL: https://www.arcgis.com/sharing/rest/generateToken
- username:-----USERNAME HERE-----
- password:-----PASSWORD HERE-----
- f:pjson
- request:getToken
- client:referer
- referer:https://route-ls.arcgis.com/
2. Use the parameters below to send the POST request. Copy-pasting the generated token from the previous step into the token parameter is applicable.
- Request URL: https://route-ls.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve
- directionsLengthUnits:esriNAUKilometers
- f:json
- ignoreInvalidLocations:true
- returnRoutes:false
- startTime:now
- stops:-80.325369,37.154623;-80.325369,37.154623;-80.324547,37.155809;-80.323891,37.157069;-80.323167,37.158481;-80.322442,37.159887;-80.321767,37.161203;-80.321021,37.162616;-80.320140,37.163871;-80.318976,37.165090;-80.317715,37.166084;-80.316164,37.166998;-80.314596,37.167676;-80.312850,37.168296;-80.311225,37.168869;-80.309464,37.169494;-80.307720,37.170107;-80.305971,37.170732;-80.304436,37.171415;-80.302919,37.172331;-80.301685,37.173325;-80.300548,37.174535;-80.299687,37.175769;-80.299380,37.176256
- token:-----TOKEN HERE-----
- travelMode:{"attributeParameterValues":[{"attributeName":"Avoid Unpaved Roads","parameterName":"Restriction Usage","value":"AVOID_HIGH"},{"attributeName":"Avoid Private Roads","parameterName":"Restriction Usage","value":"AVOID_MEDIUM"},{"attributeName":"Driving a Truck","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Roads Under Construction Prohibited","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Gates","parameterName":"Restriction Usage","value":"AVOID_MEDIUM"},{"attributeName":"Avoid Express Lanes","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Carpool Roads","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Truck Restricted Roads","parameterName":"Restriction Usage","value":"AVOID_HIGH"},{"attributeName":"TruckTravelTime","parameterName":"Vehicle Maximum Speed (km/h)","value":0}],"impedanceAttributeName":"TruckTravelTime","simplificationToleranceUnits":"esriMeters","uturnAtJunctions":"esriNFSBNoBacktrack","restrictionAttributeNames":["Avoid Carpool Roads","Avoid Express Lanes","Avoid Gates","Avoid Private Roads","Avoid Truck Restricted Roads","Avoid Unpaved Roads","Driving a Truck","Roads Under Construction Prohibited"],"useHierarchy":true,"simplificationTolerance":10,"timeAttributeName":"TruckTravelTime","distanceAttributeName":"Kilometers","type":"TRUCK","id":"ZzzRtYcPLjXFBKwr","name":"Trucking Time"}
重现步骤