We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659882e commit 29876c9Copy full SHA for 29876c9
gemma-rest/src/main/java/ubic/gemma/rest/util/args/FilterArg.java
@@ -152,6 +152,9 @@ Filters getFilters( FilteringService<O> service ) throws MalformedArgException {
152
String property = subClause.PROPERTY().getText();
153
ubic.gemma.persistence.util.Filter.Operator operator;
154
try {
155
+ if ( !service.getFilterableProperties().contains( property ) ) {
156
+ throw new IllegalArgumentException( String.format( "The property of %s is unknown", property ) );
157
+ }
158
if ( subClause.operator() != null ) {
159
operator = operatorToOperator( subClause.operator() );
160
String requiredValue = scalarToString( subClause.scalar() );
0 commit comments