OpenSearch/qa
Jason Tedor 51d53791fe Remove lenient URL parameter parsing
Today when parsing a request, Elasticsearch silently ignores incorrect
(including parameters with typos) or unused parameters. This is bad as
it leads to requests having unintended behavior (e.g., if a user hits
the _analyze API and misspell the "tokenizer" then Elasticsearch will
just use the standard analyzer, completely against intentions).

This commit removes lenient URL parameter parsing. The strategy is
simple: when a request is handled and a parameter is touched, we mark it
as such. Before the request is actually executed, we check to ensure
that all parameters have been consumed. If there are remaining
parameters yet to be consumed, we fail the request with a list of the
unconsumed parameters. An exception has to be made for parameters that
format the response (as opposed to controlling the request); for this
case, handlers are able to provide a list of parameters that should be
excluded from tripping the unconsumed parameters check because those
parameters will be used in formatting the response.

Additionally, some inconsistencies between the parameters in the code
and in the docs are corrected.

Relates #20722
2016-10-04 12:45:29 -04:00
..
backwards-5.0 Prepare master branch to be 6.0.0-alpha1 2016-09-08 12:55:30 +02:00
evil-tests [TEST] Fix EvilSystemPropertyTests to be test order independent 2016-09-29 13:26:14 +02:00
rolling-upgrade Change the timeout of the rolling upgrades test from 40 mins to 5 mins 2016-09-19 15:45:41 -04:00
smoke-test-client Merge branch 'master' into log4j2 2016-08-31 16:37:55 -04:00
smoke-test-http Remove lenient URL parameter parsing 2016-10-04 12:45:29 -04:00
smoke-test-ingest-disabled ingest: Made the response format of the get pipeline api match with the response format of the index template api 2016-07-29 17:58:30 +02:00
smoke-test-ingest-with-all-dependencies Add support for parameters to the script ingest processor 2016-08-24 16:49:48 -04:00
smoke-test-multinode Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-plugins Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-reindex-with-painless Circuit break the number of inline scripts compiled per minute 2016-08-09 10:26:27 -06:00
vagrant Remove mapper attachments plugin 2016-09-19 09:01:16 +02:00