Open lakshithagunasekara opened 1 year ago
Hi,
After rebasing the latest code base of the product-apim, there were failures when loading the publisher portal along with some errors printed in the logs. This was reproduced before rebasing the latest one and there were some errors getting printed on the console when logging in to the publisher portal via tenant credentials.
Thanks, Benura
Hi,
When trying to log in to the publisher portal via tenant credentials, the following error will show up.
[2023-01-25 10:37:26,927] ERROR - SystemScopesIssuer Error while getting scopes of application RESTAPIScopes config does not exist for tenant test.com
org.wso2.carbon.apimgt.api.APIManagementException: RESTAPIScopes config does not exist for tenant test.com
at org.wso2.carbon.apimgt.impl.utils.SystemScopeUtils.getTenantRESTAPIScopesConfig_aroundBody16(SystemScopeUtils.java:237) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
at org.wso2.carbon.apimgt.impl.utils.SystemScopeUtils.getTenantRESTAPIScopesConfig(SystemScopeUtils.java:1) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
at org.wso2.carbon.apimgt.impl.utils.SystemScopeUtils.getRESTAPIScopesForTenant_aroundBody12(SystemScopeUtils.java:173) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
at org.wso2.carbon.apimgt.impl.utils.SystemScopeUtils.getRESTAPIScopesForTenant(SystemScopeUtils.java:1) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
at org.wso2.carbon.apimgt.impl.issuers.SystemScopesIssuer.getAppScopes_aroundBody38(SystemScopesIssuer.java:712) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
at org.wso2.carbon.apimgt.impl.issuers.SystemScopesIssuer.getAppScopes(SystemScopesIssuer.java:1) ~[org.wso2.carbon.apimgt.impl_9.28.25.jar:?]
Is this an expected behavior? However, we can login to the publisher portal and create an API with this error log in the console.
Thanks, Benura
We will deprecate the data_retrieval_mode = "sync"
configuration and remove it from the next release.
Need to verify if https://github.com/wso2/api-manager/issues/1048#issuecomment-1411418439 is applicable in the APIM-4.3.0 release.
Description
When we specify the
sync
mode for data retrieval mode, tenant APIs deployment will break the tenant loading and will stuck in an infinite loop with tenant context creation. This does not happen in the default mode which isasync
.Need to investigate it and fix.
Steps to Reproduce
Change the
data_retrieval_mode
tosync
with following config for the gateway.Create a tenant
Create a tenant API
Restart the server and load the tenant by login as the tenant user to publisher
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
Related Issues
No response
Suggested Labels
No response