You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elasticsearch version (bin/elasticsearch --version):
Version: 6.3.2, Build: default/deb/053779d/2018-07-20T05:20:23.451332Z, JVM: 1.8.0_171
Plugins installed: None
JVM version (java -version):
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
OS version (uname -a if on a Unix-like system):
Linux MyHost 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Elasticsearch doesn't seem to support URL-encoded query params.
Running a query with e.g. the filter_path param (using an index called "2018-08-01")
Example 3: encoding both query param chars returns a 405 as well:
curl http://localhost:9200/2018-08-01/_search%3Ffilter_path%3Dhits.hits._source
{
"error": "Incorrect HTTP method for uri [/2018-08-01/_search%3Ffilter_path%3Dhits.hits._source] and method [GET], allowed: [POST]",
"status": 405
}
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
Install Elasticsearch 6.3.2 from a .deb package
Create an index (empty or not, the error is present in both cases) http PUT 'localhost:9200/test'
Try to query the data with an URL-encoded char in the query params curl http://localhost:9200/test/_search%3Ffilter_path%3Dhits.hits._source
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered:
Elasticsearch version (
bin/elasticsearch --version
):Version: 6.3.2, Build: default/deb/053779d/2018-07-20T05:20:23.451332Z, JVM: 1.8.0_171
Plugins installed: None
JVM version (
java -version
):openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
OS version (
uname -a
if on a Unix-like system):Linux MyHost 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Elasticsearch doesn't seem to support URL-encoded query params.
Running a query with e.g. the filter_path param (using an index called "2018-08-01")
curl http://localhost:9200/2018-08-01/_search?filter_path=hits.hits._source
correctly returns the expected results.
However if I encode part of, or all of the URI I get an error:
Example 1: encoding only the "?" char returns a 405 error:
Example 2: encoding only the "=" char returns an "illegal_argument_exception" error:
Example 3: encoding both query param chars returns a 405 as well:
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
Install Elasticsearch 6.3.2 from a .deb package
Create an index (empty or not, the error is present in both cases)
http PUT 'localhost:9200/test'
Try to query the data with an URL-encoded char in the query params
curl http://localhost:9200/test/_search%3Ffilter_path%3Dhits.hits._source
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: