WSO2-IS 5.11.0 - 不允许系统应用更新 [英] WSO2-IS 5.11.0 - System application update is not allowed

查看:28
本文介绍了WSO2-IS 5.11.0 - 不允许系统应用更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to update the new Console application to access in different port but I'm facing an error when I try to update:

回调 URL - From https://localhost:9443/console/login to https://localhost:9444/console/登录

Callback Url - From https://localhost:9443/console/login to 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 是只读系统应用程序.通过将以下内容添加到 /repository/conf/deployment.toml 位置的 deployment.toml,从只读系统应用程序中删除控制台.(此配置使只有我的帐户是只读的)

By default, Myaccount and Console are read-only system apps. Remove Console from read-only system apps by adding the following to the deployment.toml at <wso2is-home>/repository/conf/deployment.toml location. (This config makes that only My Account is read-only)

[system_applications]
read_only_apps = ["My Account"]

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

If you want to remove both Myaccount and Console apps out of the readonly apps (allow to modify the app configs), use the following config.

 [system_applications]
 read_only_apps = []

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

Then restart the server. You will be able to do configuration changes now. Refer: https://is.docs.wso2.com/en/5.11.0/setup/migrating-what-has-changed/#configurable-system-apps

这篇关于WSO2-IS 5.11.0 - 不允许系统应用更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆