Open JinkiJung opened 1 week ago
The search does not fail when not using a GeometryCollection as a wrapper. Seems like that the string fails validation on this regex, but on the other hand there is also not really any reason in using a GeometryCollection with only have one element inside.
Hello there!
Geometry search from the management portal doesn't work with the POST call below:
User action: User tries point based search in service search page of the management portal
API: https://msr-test.maritimeconnectivity.net/api/secom/v1/searchService
Payload {query: {}, geometry: "GEOMETRYCOLLECTION(POINT (-0.527344 51.399206))", freetext: ""}
Result: 400 Bad Request
Also doesn't work with other geometry types.
Parsing of parseGeometry function in SecomSearchServiceController might cause this problem.