From 179dd1b26571eb08cc233579f34d6806673be6c5 Mon Sep 17 00:00:00 2001 From: beka-zhvania Date: Fri, 3 Mar 2023 15:31:48 +0100 Subject: [PATCH] fix storing OCDA parameters in the db --- .../src/main/java/i5/las2peer/services/ocd/ServiceClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_ocd_services/src/main/java/i5/las2peer/services/ocd/ServiceClass.java b/rest_ocd_services/src/main/java/i5/las2peer/services/ocd/ServiceClass.java index eb78ee77..bb022935 100644 --- a/rest_ocd_services/src/main/java/i5/las2peer/services/ocd/ServiceClass.java +++ b/rest_ocd_services/src/main/java/i5/las2peer/services/ocd/ServiceClass.java @@ -1166,7 +1166,7 @@ public Response runAlgorithm(@PathParam("graphId") String graphIdStr, Map parameters; try { parameters = requestHandler.parseParameters(content); - algorithm = algorithmFactory.getInstance(algorithmType, parameters); + algorithm = algorithmFactory.getInstance(algorithmType, new HashMap(parameters)); } catch (Exception e) { requestHandler.log(Level.WARNING, "user: " + username, e); return requestHandler.writeError(Error.PARAMETER_INVALID, "Parameters are not valid.");