OpenSearch/x-pack/qa
Ioannis Kakavas 99aedc844d
Copy http headers to ThreadContext strictly (#45945) (#48675)
Previous behavior while copying HTTP headers to the ThreadContext,
would allow multiple HTTP headers with the same name, handling only
the first occurrence and disregarding the rest of the values. This
can be confusing when dealing with multiple Headers as it is not
obvious which value is read and which ones are silently dropped.

According to RFC-7230, a client must not send multiple header fields
with the same field name in a HTTP message, unless the entire field
value for this header is defined as a comma separated list or this
specific header is a well-known exception.

This commits changes the behavior in order to be more compliant to
the aforementioned RFC by requiring the classes that implement
ActionPlugin to declare if a header can be multi-valued or not when
registering this header to be copied over to the ThreadContext in
ActionPlugin#getRestHeaders.
If the header is allowed to be multivalued, then all such headers
are read from the HTTP request and their values get concatenated in
a comma-separated string.
If the header is not allowed to be multivalued, and the HTTP
request contains multiple such Headers with different values, the
request is rejected with a 400 status.
2019-10-31 23:05:12 +02:00
..
core-rest-tests-with-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
evil-tests Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
full-cluster-restart Allow more time for restart tests to reach yellow state. (#48434) (#48480) 2019-10-24 12:07:02 -05:00
kerberos-tests Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
multi-cluster-search-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
multi-node Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
oidc-op-tests Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
openldap-tests Fix AD realm additional metadata (#47179) 2019-10-01 17:05:25 +03:00
reindex-tests-with-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
rolling-upgrade Fix upgraded_scroll test (#48525) 2019-10-29 08:10:40 +01:00
rolling-upgrade-basic Backport testclusters all (#47565) 2019-10-04 16:12:53 +03:00
rolling-upgrade-multi-cluster Backport testclusters all (#47565) 2019-10-04 16:12:53 +03:00
saml-idp-tests Mute failing SamlAuthenticationIT tests (#46369) 2019-09-05 12:25:43 +03:00
security-client-tests Complete testclusters backport (#47623) 2019-10-07 11:43:57 +03:00
security-example-spi-extension Copy http headers to ThreadContext strictly (#45945) (#48675) 2019-10-31 23:05:12 +02:00
security-migrate-tests Complete testclusters backport (#47623) 2019-10-07 11:43:57 +03:00
security-setup-password-tests Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
security-tools-tests CLI tools: write errors to stderr instead of stdout (#45586) 2019-08-21 14:46:07 -04:00
smoke-test-monitoring-with-watcher Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-plugins Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-plugins-ssl Convert RunTask to use testclusers, remove ClusterFormationTasks (#47572) 2019-10-08 14:43:29 +03:00
smoke-test-security-with-mustache Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-watcher Re-enable Watcher rest test (#47699) (#47705) 2019-10-08 09:45:27 -05:00
smoke-test-watcher-with-security watcher tests - increase stop timeout to 60s (#45679) (#45934) 2019-08-26 08:34:54 -05:00
src/main/java/org/elasticsearch/xpack/test [Transform] Rename internal indexes for transform plugin (#47788) (#47900) 2019-10-11 14:16:17 +02:00
third-party Fix Active Directory tests (#47358) (#47440) 2019-10-02 17:18:12 +03:00
transport-client-tests Use correct policy type in test 2019-10-18 16:58:03 +02:00
build.gradle Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00