Skip to content

Commit 896cd89

Browse files
author
广富
committed
throw exception for unknown token in RestIndexPutAliasAction
1 parent 03f3c81 commit 896cd89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestIndexPutAliasAction.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
8989
if ("filter".equals(currentFieldName)) {
9090
filter = parser.mapOrdered();
9191
}
92+
} else {
93+
throw new IllegalArgumentException("Unknown token [" + token + "]");
9294
}
9395
}
9496
}

0 commit comments

Comments
 (0)