Skip to content
Snippets Groups Projects
Commit fdc80464 authored by Morris Estepa's avatar Morris Estepa
Browse files

Fix * string comparison

parent 017b6d86
No related branches found
No related tags found
1 merge request!424Prevent cross-tenant (data partition) search
......@@ -29,7 +29,7 @@ public class AwsCrossTenantUtils extends CrossTenantUtils {
for(String kind : kinds) {
String index = this.elasticIndexNameResolver.getIndexNameFromKind(kind);
String[] indexArr = index.split("-");
if (indexArr[0] == "*") {
if (indexArr[0].equalsIgnoreCase("*")) {
indexArr[0] = dpsHeaders.getPartitionId();
}
else if (indexArr[0].equalsIgnoreCase(dpsHeaders.getPartitionId()) == false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment