Skip to content
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

Disabling deletion of all indices does not work when using _all #1834

Closed
heffergm opened this issue Apr 2, 2012 · 2 comments
Closed

Disabling deletion of all indices does not work when using _all #1834

heffergm opened this issue Apr 2, 2012 · 2 comments

Comments

@heffergm
Copy link

heffergm commented Apr 2, 2012

Setting action.disable_delete_all_indices: true only works for '/', not '_all':

root@staging-es-r01:/opt/elastic_search# curl -XDELETE 'http://staging-es-r01:9200/'
{"error":"ElasticSearchIllegalArgumentException[deleting all indices is disabled]","status":400}

root@staging-es-r01:/opt/elastic_search# curl -XDELETE 'http://staging-es-r01:9200/_all/'
{"ok":true,"acknowledged":true}

@kimchy kimchy closed this as completed in b386668 Apr 3, 2012
Kami pushed a commit to racker/elasticsearch that referenced this issue May 7, 2012
@karmi
Copy link
Contributor

karmi commented Aug 21, 2012

In fact, it also does not work with something like -foo:

curl -X DELETE localhost:9200/-this-should-not-happen

But it happens.

@kimchy
Copy link
Member

kimchy commented Aug 21, 2012

@karmi this happens because of the new regex support, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants