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
This commit is contained in:
parent
7caa7b9766
commit
184690f2d6
|
@ -367,7 +367,7 @@ public class Access {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
directionEnum = Direction.valueOf(direction);
|
directionEnum = Direction.valueOf(direction.toUpperCase());
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
String error = String.format("%s is not a valid. Allowed values are %s", direction, Direction.values());
|
String error = String.format("%s is not a valid. Allowed values are %s", direction, Direction.values());
|
||||||
throw new InvalidQueryException(error);
|
throw new InvalidQueryException(error);
|
||||||
|
|
Loading…
Reference in New Issue