用户无权更新集合/_system/governance/apimgt/applicationdata

User does not have authorization to update the collection /_system/governance/apimgt/applicationdata

我想做的是:

1.SSO 使用 wso2 身份服务器 5.1.0 和 wso2 API 管理器 1.10.0(完成)

参考:https://docs.wso2.com/display/AM1100/Configuring+Single+Sign-on+with+SAML2

2.Login wso2 API 管理器 1.10.0 通过 Facebook 凭据(完成)

参考:https://docs.wso2.com/display/IS510/How+To%3A+Login+to+the+Identity+Server+using+Facebook+Credentials

3.After 通过 Facebook 帐户登录 API-M,我想部署示例 API(失败)

API-M 日志:

ERROR {org.wso2.carbon.governance.api.common.GovernanceArtifactManager} -  Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata. {org.wso2.carbon.governance.api.common.GovernanceArtifactManager}
org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.


ERROR GovernanceArtifactManager Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Error while performing registry transaction operation {org.wso2.carbon.apimgt.impl.UserAwareAPIProvider}
org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.


ERROR UserAwareAPIProvider Error while performing registry transaction operation
org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.


ERROR {JAGGERY.site.blocks.item-design.ajax.add:jag} -  org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI (/publisher/modules/api/add.jag#107)

Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI

Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation

Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.


ERROR add:jag org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI (/publisher/modules/api/add.jag#107)

Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI

Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation

Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.

并且我设置角色everyone的权限为All权限

我尝试转到 API-M Store 并创建一个新应用程序,已完成但仍然无法将 API 部署到 Publisher。

谢谢

汤姆

API 管理器使用注册表侦听器为其自己的注册表路径授予权限。但是,当您从 IS 端创建用户和角色时,侦听器将不会执行。因此,不会为这些注册表路径分配该特定用户所需的权限。 有两种解决方法。

1 您可以通过 API 管理员控制台创建用户和角色。

  1. 您可以在 IS 上安装 API 管理器功能。