Commit e3d00390 authored by Manish's avatar Manish
Browse files

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

parent f20ff7f7
Pipeline #43478 failed with stages
in 36 minutes and 58 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");
......@@ -65,7 +65,7 @@ public class ScrollQueryServiceImpl extends QueryBase implements IScrollQuerySer
public CursorQueryResponse queryIndex(CursorQueryRequest searchRequest) throws Exception {
CursorQueryResponse queryResponse = CursorQueryResponse.getEmptyResponse();
Markdown is supported
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