From 184690f2d6958a32312e7db5777b0dad64744f14 Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Tue, 12 Jun 2018 12:37:41 +0000 Subject: [PATCH] Refs #11288: Made resource-registry more RESTful Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@169049 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/informationsystem/resourceregistry/rest/Access.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java index 60f89b9..639b1a2 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java @@ -367,7 +367,7 @@ public class Access { } } try { - directionEnum = Direction.valueOf(direction); + directionEnum = Direction.valueOf(direction.toUpperCase()); } catch(Exception e) { String error = String.format("%s is not a valid. Allowed values are %s", direction, Direction.values()); throw new InvalidQueryException(error);