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

NullPointerException when trying to add single alias without index or alias #3363

Closed
javanna opened this issue Jul 22, 2013 · 0 comments
Closed

Comments

@javanna
Copy link
Member

javanna commented Jul 22, 2013

Missing validation when trying to add a single alias and index or alias (or both) are missing. The following requests lead to a NullPointerException:

curl -XPUT localhost:9200/_alias
curl -XPUT localhost:9200/index1/_alias
curl -XPUT localhost:9200/_alias/alias1

We need to add proper validation for such cases. Also, in those cases the request never returns due to a missing CountDownLatch#countDown when there's an uncaught exception, which we are going to address on a separate issue.

@ghost ghost assigned javanna Jul 22, 2013
javanna added a commit that referenced this issue Jul 22, 2013
Moved alias action validation to IndicesAliasesRequest, so that Java api and RestIndexPutAliasAction can benefit from it too.
Added check in MetaDataIndexAliasesService too.

Closes #3363
javanna pushed a commit to javanna/elasticsearch that referenced this issue Dec 27, 2013
brusic pushed a commit to brusic/elasticsearch that referenced this issue Jan 19, 2014
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Moved alias action validation to IndicesAliasesRequest, so that Java api and RestIndexPutAliasAction can benefit from it too.
Added check in MetaDataIndexAliasesService too.

Closes elastic#3363
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

1 participant