We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
If you request (by accident?) a URL with an empty index name, you get a pretty random answer:
$ curl -X PUT -H 'Content-type: application/json' localhost:9200//_cluster/settings?pretty -d '{}' { "error" : { "root_cause" : [ { "type" : "string_index_out_of_bounds_exception", "reason" : "String index out of range: 0" } ], "type" : "string_index_out_of_bounds_exception", "reason" : "String index out of range: 0" }, "status" : 500 }
It would be better to explicitly complain about the double slash or empty index component, I suggest the following error message:
{ "status": 400, "error": { "reason": "empty string is an invalid index name (do you have a double slash in the URL by accident?)" } }
To Reproduce Steps to reproduce the behavior:
Expected behavior A 400 error with a descriptive error message.
The text was updated successfully, but these errors were encountered:
I will look into this.
Sorry, something went wrong.
Was able to reproduce the bug by using the steps mentioned by user.
Looks like all of the related changes are merged. Closing this issue out.
meghasaik
No branches or pull requests
Describe the bug
If you request (by accident?) a URL with an empty index name, you get a pretty random answer:
It would be better to explicitly complain about the double slash or empty index component, I suggest the following error message:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A 400 error with a descriptive error message.
The text was updated successfully, but these errors were encountered: