Skip to content

Commit

Permalink
Fix Application import fails in cross tenant scenarios when import wi…
Browse files Browse the repository at this point in the history
…th subscriptions.

Fixes wso2/api-manager#2688
  • Loading branch information
RusJaI committed May 10, 2024
1 parent 17ff812 commit 27e4179
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static List<APIIdentifier> importSubscriptions(Set<ExportedSubscribedAPI>
if (!StringUtils.isEmpty(tenantDomain) && APIUtil.isTenantAvailable(tenantDomain)) {
String uuidFromIdentifier = ApiMgtDAO.getInstance().getUUIDFromIdentifier(apiIdentifier, tenantDomain);
if (StringUtils.isNotEmpty(uuidFromIdentifier)) {
ApiTypeWrapper apiTypeWrapper = apiConsumer.getAPIorAPIProductByUUID(uuidFromIdentifier, organization);
ApiTypeWrapper apiTypeWrapper = apiConsumer.getAPIorAPIProductByUUID(uuidFromIdentifier, tenantDomain);
// Tier of the imported subscription
String targetTier = subscribedAPI.getThrottlingPolicy();
// Checking whether the target tier is available
Expand Down

0 comments on commit 27e4179

Please sign in to comment.