🔎 Open source distributed and RESTful search engine.
Go to file
jaymode d74de5acc8 shield: only wrap readers if the RequestContext can be located
Previously, when the RequestContext could not be located a FieldSubsetReader was returned that only
allowed meta fields to be read. This was done for safety in case there was an API missed so we did not
leak data. However, this causes issues because some requests in elasticsearch execute on a different
thread than the one with the RequestContext so we effectively lose this context and prevent access to
the fields in the document. This is especially problematic with update requests, because that means that
fields that aren't included in the updated document will be lost.

This commit removes the wrapping of the readers in this case and adds tests for bulk updates.

Closes elastic/elasticsearch#938

Original commit: elastic/x-pack-elasticsearch@74c8059da0
2015-11-11 13:26:49 -05:00
buildSrc Build: Improve behavior and setup for attachment to elasticsearch 2015-11-06 11:08:03 -08:00
marvel Build: Remove transitive dependencies 2015-11-11 09:18:24 -08:00
qa Remove confusing pom.xml files 2015-11-05 10:39:28 -05:00
shield shield: only wrap readers if the RequestContext can be located 2015-11-11 13:26:49 -05:00
watcher Build: Remove transitive dependencies 2015-11-11 09:18:24 -08:00
x-dev-tools Remove confusing pom.xml files 2015-11-05 10:39:28 -05:00
.dir-locals.el Add .dir-locals.el and .projectile 2015-10-30 11:16:29 -06:00
.projectile Add .dir-locals.el and .projectile 2015-10-30 11:16:29 -06:00
LICENSE.txt Initial X-Pack commit 2018-04-20 14:16:58 -07:00
README.asciidoc Add attachment docs to README 2015-11-04 11:19:13 -08:00
build.gradle Build: Remove transitive dependencies 2015-11-11 09:18:24 -08:00
settings.gradle Fix build to still work when not attached to elasticsearch 2015-11-06 14:03:08 -08:00

README.asciidoc

= Elasticsearch X Plugins

A set of Elastic's commercial plugins:

- License
- Shield
- Watcher
- Marvel

= Testing with Elasticsearch
Sometimes it is useful to use your local elasticsearch checkout with x-plugins. To do this, run the following commands:
cd buildSrc
gradle attach --name elasticsearch --path /path/to/elasticsearch/buildSrc
cd ..
gradle attach --name elasticsearch --path /path/to/elasticsearch

This will cause building x-plugins to reflect any changes in your elasticsearch repo. For example, if you make a change to elasticsearch core, building x-plugins will first re-build elasticsearch core, and use that when building x-plugins.