-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI encode the index names we fetch in the fetchIndices lib function #76584
Merged
cjcenizal
merged 2 commits into
elastic:master
from
cjcenizal:bug/uri-encode-reload-indices
Sep 4, 2020
Merged
URI encode the index names we fetch in the fetchIndices lib function #76584
cjcenizal
merged 2 commits into
elastic:master
from
cjcenizal:bug/uri-encode-reload-indices
Sep 4, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cjcenizal
added
release_note:fix
Feature:Index Management
Index and index templates UI
v8.0.0
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
v7.10.0
v7.9.1
labels
Sep 2, 2020
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
@elasticmachine merge upstream |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
jloleysens
approved these changes
Sep 4, 2020
This was referenced Sep 4, 2020
cjcenizal
added a commit
to cjcenizal/kibana
that referenced
this pull request
Sep 4, 2020
…elastic#76584) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
cjcenizal
added a commit
that referenced
this pull request
Sep 4, 2020
cjcenizal
added a commit
that referenced
this pull request
Sep 4, 2020
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Sep 4, 2020
* master: (47 commits) Do not require id & description when creating a logstash pipeline (elastic#76616) Remove commented src/core/tsconfig file (elastic#76792) Replaced whitelistedHosts with allowedHosts in actions ascii docs (elastic#76731) [Dashboard First] Genericize Attribute Service (elastic#76057) [ci-metrics] unify distributable file count metrics (elastic#76448) [Security Solution][Detections] Handle conflicts on alert status update (elastic#75492) [eslint] convert to @typescript-eslint/no-unused-expressions (elastic#76471) [DOCS] Add default time range filter to advanced settings (elastic#76414) [Security Solution] Refactor NetworkTopNFlow to use Search Strategy (elastic#76249) [Dashboard] Update Index Patterns when Child Index Patterns Change (elastic#76356) [ML] Add option to Advanced Settings to set default time range filter for AD jobs (elastic#76347) Add CSM app to CODEOWNERS (elastic#76793) [Security Solution][Exceptions] - Updates exception item find sort field (elastic#76685) [Security Solution][Detections][Tech Debt] - Move to using common io-ts types (elastic#75009) [Lens] Drag dimension to replace (elastic#75895) URI encode the index names we fetch in the fetchIndices lib function. (elastic#76584) [Security Solution] Resolver retrieve entity id of documents without field mapped (elastic#76562) [Ingest Manager] validate agent route using AJV instead kbn-config-schema (elastic#76546) Updated non-dev usages of node-forge (elastic#76699) [Ingest Pipelines] Processor forms for processors K-S (elastic#75638) ...
29 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Index Management
Index and index templates UI
release_note:fix
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
v7.9.2
v7.10.0
v8.0.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #75869
Relates to elastic/elasticsearch#61763
In 7.9, we started fetching indices use the indices API in addition to the cat indices API (https://github.com/elastic/kibana/pull/66422/files#diff-784d69eb6ea217af4edd2559d5ca2445R44), using the
transport.request
method of the JS client. Per elastic/elasticsearch#61763 (comment),transport.request
expects the URL to already be URI encoded. Without encoding the URI, having an index with encodable characters (e.g.%{[@metadata][beat]}-%{[@metadata][version]}-2020.08.23
) would cause requests to/indices/reload
to fail with a 405 error.To test this, create an index in Console like this:
Then go to Index Management and wait a minute. You'll see a request to
/indices/reload
fail with a 405 error. This PR fixes that error.Release note
Indices that contain the characters % { [ @ will no longer cause a 405 error in Index Management.