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);