mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
Adds defenseagainst broken scrolls to the fetching roles and users. While Elasticsearch *shouldn't* send broken scrolls it has done so in the past and when it does this causes security to consume the entire heap and crash. This changes it so we instead fail the request with a message about the scroll being broken. Relates to elastic/x-pack-elasticsearch#1299 Original commit: elastic/x-pack-elasticsearch@dfef87e757