Fix syntax error position indicators in parameters queries
To fix #2193 prefix_length member variable has been added to ParsedURL that is set to the length of "/service/version/profile/" prefix when the prefix is accepted by the parser. Also BOOST_FUSION_ADAPT_STRUCT for osrm::server::api::ParsedURL has been moved from header to url_parser.cpp to speed up compilation of CUs that do not use the fusion adaption.
This commit is contained in:
@@ -55,13 +55,13 @@ Feature: Status messages
|
||||
| ? | 400 | URL string malformed close to position 1: "/?" |
|
||||
| route/v1/driving | 400 | URL string malformed close to position 17: "ing" |
|
||||
| route/v1/driving/ | 400 | URL string malformed close to position 18: "ng/" |
|
||||
| route/v1/driving/1 | 400 | Query string malformed close to position 1 |
|
||||
| route/v1/driving/1 | 400 | Query string malformed close to position 19 |
|
||||
| route/v1/driving/1,1 | 400 | Number of coordinates needs to be at least two. |
|
||||
| route/v1/driving/1,1,1 | 400 | Query string malformed close to position 3 |
|
||||
| route/v1/driving/x | 400 | Query string malformed close to position 0 |
|
||||
| route/v1/driving/x,y | 400 | Query string malformed close to position 0 |
|
||||
| route/v1/driving/1,1; | 400 | Query string malformed close to position 3 |
|
||||
| route/v1/driving/1,1;1 | 400 | Query string malformed close to position 5 |
|
||||
| route/v1/driving/1,1;1,1,1 | 400 | Query string malformed close to position 7 |
|
||||
| route/v1/driving/1,1;x | 400 | Query string malformed close to position 3 |
|
||||
| route/v1/driving/1,1;x,y | 400 | Query string malformed close to position 3 |
|
||||
| route/v1/driving/1,1,1 | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/x | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/x,y | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/1,1; | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;1 | 400 | Query string malformed close to position 23 |
|
||||
| route/v1/driving/1,1;1,1,1 | 400 | Query string malformed close to position 25 |
|
||||
| route/v1/driving/1,1;x | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;x,y | 400 | Query string malformed close to position 21 |
|
||||
|
||||
Reference in New Issue
Block a user