You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'am_api_policy_mapping' table doesn't exist in the database, the catalog will be null[1], however, the search will occur across all databases. In other words, if another accessible APIM-related database exists and contains the AM_API_POLICY_MAPPING table, the search will return true because the catalog (the first argument) is set to null in [1]. When the catalog is null in [1], the database name is not used to narrow the search.
Description
The 'am_api_policy_mapping' table doesn't exist in the database, the catalog will be null[1], however, the search will occur across all databases. In other words, if another accessible APIM-related database exists and contains the AM_API_POLICY_MAPPING table, the search will return true because the catalog (the first argument) is set to null in [1]. When the catalog is null in [1], the database name is not used to narrow the search.
[1]. https://github.com/wso2-support/carbon-apimgt/blob/53af28b5efec80d06196f772336d6a09d80021bc/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java#L20955
Steps to Reproduce
Did a migration from APIM 3.2.0 to APIM 4.2.0
[2]. https://github.com/wso2-support/carbon-apimgt/blob/53af28b5efec80d06196f772336d6a09d80021bc/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java#L20940
Version
APIM 4.2.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: