geonetwork / geonetwork-microservices

GNU General Public License v2.0
13 stars 18 forks source link

/items/xxx returns jackson parse exception #34

Closed pvgenuchten closed 3 years ago

pvgenuchten commented 3 years ago

the version deployed at apps.titellus.net/ogcapi currently throws a parse exception for any record encoded as html

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('3' (code 51)): was expecting comma to separate Object entries at [Source: (String)"{"from": 0, "size": 1, "query": {"query_string": {"query": "+_id:\"1fecc0f9f223af47c389f48f6e2d043a046eb6c7\" +harvesterUuid:"3b7cf385-435a-49d6-bf23-775b4b573a72" +isTemplate:n"}}, "_source": {"includes": ["*"]}}"; line: 1, column: 128]

when requested in json, the error is:

"message": "Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for '/ogcapi/collections/3b7cf385-435a-49d6-bf23-775b4b573a72/items/1fecc0f9f223af47c389f48f6e2d043a046eb6c7': {public java.lang.String org.fao.geonet.ogcapi.records.controller.ItemApiController.collectionsCollectionIdItemsRecordIdGetAsHtml(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest,org.springframework.ui.Model), public org.springframework.http.ResponseEntity org.fao.geonet.ogcapi.records.controller.ItemApiController.collectionsCollectionIdItemsRecordIdGet(java.lang.String,java.lang.String)}",
fxprunayre commented 3 years ago

Works fine now https://apps.titellus.net/ogcapi/collections/main/items/902d8085-13a3-40a0-890f-a05a98269b19. Closing.