WSO2-IS 5.11.0 - 不允许系统应用程序更新

WSO2-IS 5.11.0 - System application update is not allowed

我正在尝试更新新的控制台应用程序以在不同的端口访问,但我在尝试更新时遇到错误:

回调Url - 来自 https://localhost:9443/console/login https://localhost:9444/console/login

[2021-06-28 16:22:14,946] [dfb3d753-6fa6-47dc-99da-ff8829cde374] ERROR {org.apache.axis2.rpc.receivers.RPCMessageReceiver} - System application update is not allowed. Client id: CONSOLE java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ...
Caused by: org.wso2.carbon.identity.oauth.IdentityOAuthClientException: System application update is not allowed. Client id: CONSOLE
    at org.wso2.identity.apps.common.listner.AppPortalOAuthAppMgtListener.doPreUpdateConsumerApplication(AppPortalOAuthAppMgtListener.java:67)
    at org.wso2.carbon.identity.oauth.OAuthAdminServiceImpl.updateConsumerApplication(OAuthAdminServiceImpl.java:394)
    at org.wso2.carbon.identity.oauth.OAuthAdminService.updateConsumerApplication(OAuthAdminService.java:148)

默认情况下,Myaccount 和 Console 是只读系统应用程序。通过将以下内容添加到 <wso2is-home>/repository/conf/deployment.toml 位置的 deployment.toml,从只读系统应用程序中删除控制台。 (此配置使只有我的帐户是只读的)

[system_applications]
read_only_apps = ["My Account"]

如果您想从只读应用程序中删除我的帐户和控制台应用程序(允许修改应用程序配置),请使用以下配置。

 [system_applications]
 read_only_apps = []

然后重启服务器。您现在可以进行配置更改。参考:https://is.docs.wso2.com/en/5.11.0/setup/migrating-what-has-changed/#configurable-system-apps