发布API时的API Manager Publisher异常

时间:2014-01-29 20:31:56

标签: wso2

我遵循了http://docs.wso2.org/display/AM160/User+Roles+in+the+API+Manager中规定的指示 设置'发布者'角色。不幸的是,当我以发布者身份登录并尝试将API的状态设置为“已发布”时,我得到一个异常,其中显示权限未正确设置。从屏幕截图中可以看出,由于屏幕截图不匹配,文档已过期。

有什么正确的角色?

Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Error in updating the artifact, artifact id: 75bbe8ef-c0d4-426e-be9b-703468026d9e.Resource update failed. User publisher is not authorized to update the resource /_system/governance/apimgt/applicationdata/provider/creator/ItemService/3.0/api..
    at org.wso2.carbon.governance.api.common.GovernanceArtifactManager.updateGovernanceArtifact(GovernanceArtifactManager.java:457)
    at org.wso2.carbon.governance.api.generic.GenericArtifactManager.updateGenericArtifact(GenericArtifactManager.java:181)
    at org.wso2.carbon.apimgt.impl.APIProviderImpl.updateApiArtifact(APIProviderImpl.java:556)
    ... 64 more
Caused by: org.wso2.carbon.registry.core.secure.AuthorizationFailedException: Resource update failed. User publisher is not authorized to update the resource /_system/governance/apimgt/applicationdata/provider/creator/ItemService/3.0/api.
    at org.wso2.carbon.registry.core.jdbc.Repository.update(Repository.java:1084)
    at org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:288)
    at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
    at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
    at org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
    at org.wso2.carbon.governance.api.common.GovernanceArtifactManager.updateGovernanceArtifact(GovernanceArtifactManager.java:439)
    ... 66 more

1 个答案:

答案 0 :(得分:1)

我是一个非常直观的人,我想如果我只是仔细阅读了文档并且不依赖于屏幕截图就可以了。据我所知,我按照文字说明正确地创建了创作角色......

Configure > Governance and all underlying permissions.
Login
Manage > API > Create
Manage > Resources > Govern and all underlying permissions

我错过了“管理>资源>管理和所有基础权限”

我更新了创作者角色&重新创建我的API,发布者可以将API发布到商店。

相关问题