From c8d962ad88da4403ae9186e7213a7ce28b82aaa1 Mon Sep 17 00:00:00 2001 From: sblimkie Date: Mon, 22 Jan 2018 19:29:18 -0500 Subject: Fix issue with patch requests Fix issue where patch commands were failing for non-string vertex properties Change-Id: I1cf25565fc121745e817c8292c99d4cdc89c4a35 Issue-ID: AAI-685 Signed-off-by: sblimkie --- src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java') diff --git a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java index 60a18d3..b3e7551 100644 --- a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java +++ b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java @@ -261,7 +261,7 @@ public class CrudAsyncGraphDataService extends AbstractGraphDataService { public String patchVertex(String version, String id, String type, VertexPayload payload) throws CrudException { Vertex existingVertex - = dao.getVertex(id, OxmModelValidator.resolveCollectionType(version, type)); + = dao.getVertex(id, OxmModelValidator.resolveCollectionType(version, type), version); Vertex patchedVertex = OxmModelValidator.validateIncomingPatchPayload(id, version, type, payload.getProperties(), existingVertex); -- cgit 1.2.3-korg