Commit a7118db9 authored by Manish Singh's avatar Manish Singh Committed by Shrikant Garg
Browse files

Avoiding Tenant Validation On Wildcard Search For Kind. Fix #43

parent 0e55b728
......@@ -357,7 +357,7 @@ abstract class QueryBase {
// validate tenant from kind with the partition id header
public void validateTenant(Query searchRequest) {
if (!this.getIndex(searchRequest).startsWith(this.dpsHeaders.getPartitionId())) {
if (!this.getIndex(searchRequest).startsWith("*") && !this.getIndex(searchRequest).startsWith(this.dpsHeaders.getPartitionId())) {
throw new AccessDeniedException("query kind tenant is not that same at the data-partition-id header");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment