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

IndexNameExpressionResolver should not ignore any wildcards #13384

Merged
merged 1 commit into from Sep 15, 2015

Conversation

xuzha
Copy link
Contributor

@xuzha xuzha commented Sep 8, 2015

Suffix wildcard case should work for the expression which only has one wildcard in the end.

Fix for #13334.

@clintongormley clintongormley added >bug review :Data Management/Indices APIs APIs to create and manage indices and templates labels Sep 8, 2015
@@ -604,6 +596,14 @@ public long getStartTime() {
.stream()
.filter(e -> Regex.simpleMatch(pattern, e.getKey()))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably keep the clauses in the order they were in before. Not a big deal though.

@nik9000
Copy link
Member

nik9000 commented Sep 14, 2015

Left a small comment otherwise it LGTM.

@xuzha
Copy link
Contributor Author

xuzha commented Sep 14, 2015

Thx @nik9000 :-)

@xuzha
Copy link
Contributor Author

xuzha commented Sep 14, 2015

Do we need this for 2.0 and 2.1 @clintongormley ?

@nik9000
Copy link
Member

nik9000 commented Sep 14, 2015

Almost certainly 2.1 (2.x branch) and probably not 2.0. Its a bug and doesn't have much chance of breaking anything so I'm for putting it in 2.0 as well.

@martijnvg
Copy link
Member

LGTM

@xuzha @nik9000 @clintongormley I think this bugfix should be backported to 2.x and 2.0

@xuzha xuzha merged commit c6da8d5 into elastic:master Sep 15, 2015
@xuzha
Copy link
Contributor Author

xuzha commented Sep 15, 2015

Thanks @nik9000 and @martijnvg for the review.

Changes are in master c6da8d5, 2.x defe1de, 2.0 0e0c89a

@martijnvg
Copy link
Member

thank you @xuzha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates v2.0.0-rc1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants