Skip to content

Commit

Permalink
Merge pull request #110 from rwth-acis/storeOCDAParameters
Browse files Browse the repository at this point in the history
fix storing OCDA parameters in the db
  • Loading branch information
beka-zhvania committed Mar 6, 2023
2 parents 8219c9c + 179dd1b commit 1620c72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ public Response runAlgorithm(@PathParam("graphId") String graphIdStr,
Map<String, String> parameters;
try {
parameters = requestHandler.parseParameters(content);
algorithm = algorithmFactory.getInstance(algorithmType, parameters);
algorithm = algorithmFactory.getInstance(algorithmType, new HashMap<String, String>(parameters));
} catch (Exception e) {
requestHandler.log(Level.WARNING, "user: " + username, e);
return requestHandler.writeError(Error.PARAMETER_INVALID, "Parameters are not valid.");
Expand Down

0 comments on commit 1620c72

Please sign in to comment.