Commit bb035710 authored by Shrikant Garg's avatar Shrikant Garg
Browse files

Merge branch 'avoid_tenant_validation' into 'master'

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

Closes #43

See merge request !119
parents 0e55b728 a7118db9
Pipeline #43514 passed with stages
in 24 minutes and 4 seconds
......@@ -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