Skip to content

Commit

Permalink
make policy path check case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshina99 committed Dec 6, 2024
1 parent 4792184 commit 59f736c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ public Mediation getMediationPolicy(Organization org, String apiId, String media
int prependIndex = apiPath.lastIndexOf("/api");
String apiResourcePath = apiPath.substring(0, prependIndex);
String policyPath = GovernanceUtils.getArtifactPath(registry, mediationPolicyId);
if (!policyPath.startsWith(apiResourcePath)) {
if (!policyPath.toLowerCase().startsWith(apiResourcePath.toLowerCase())) {
throw new MediationPolicyPersistenceException("Policy not foud ", ExceptionCodes.POLICY_NOT_FOUND);
}
Resource mediationResource = registry.get(policyPath);
Expand Down

0 comments on commit 59f736c

Please sign in to comment.