简体   繁体   English

wso2 api管理器工件关联错误多租户

[英]wso2 api manager artifact association error multi tenant

So we have set up a api manager with a identity server as a key manager. 因此,我们建立了一个以身份服务器为密钥管理器的api管理器。 Carbon.super is the only tenant that can create APIs in api manager, with no issues. Carbon.super是唯一可以在api管理器中创建API的租户,没有任何问题。
Internal/everyone have been granted with every permission on their tenants, users on different tenants can log onto the api manager publisher and store, on other tenants the users cannot create any api's with the following errors on the API manager removed the (at) references for making it less to read. 内部/每个人都被授予其租户的所有权限,不同租户上的用户可以登录api管理器发布者并进行存储,在其他租户上,用户无法创建任何api,并且API管理器上出现以下错误,删除了(at)引用为减少阅读量。

TID: [1] [] [2019-02-11 12:58:19,669] @test.dk [1] [AM]ERROR {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl} -  Error in associating lifecycle for the artifact. id: d9afaaa9-a2fe-479f-927b-658dc34393b6, path: /apimgt/applicationdata/provider/admin-AT-test.dk/WorldBank/1/api. {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find aspectName 'APILifeCycle'
TID: [1] [] [2019-02-11 12:58:19,680] @test.dk [1] [AM]ERROR {org.wso2.carbon.apimgt.impl.UserAwareAPIProvider} -  Error while performing registry transaction operation {org.wso2.carbon.apimgt.impl.UserAwareAPIProvider}
org.wso2.carbon.governance.api.exception.GovernanceException: Error in associating lifecycle for the artifact. id: d9afaaa9-a2fe-479f-927b-658dc34393b6, path: /apimgt/applicationdata/provider/admin-AT-test.dk/WorldBank/1/api.
TID: [-1234] [] [2019-02-11 12:58:19,684] ERROR {JAGGERY.site.blocks.item-design.ajax.add:jag} -  org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation (/publisher/modules/api/add.jag#108)

for the full issue log go to this link: https://pastebin.com/9LDv3u8Q 有关完整的问题日志,请转到此链接: https : //pastebin.com/9LDv3u8Q

i can create applications on the /store with the tenant users. 我可以与租户用户在/ store上创建应用程序。

the apilifecycle doesnt seem to be linked to tenants made thus making it impossible to make API's on the server apilifecycle似乎没有链接到租户,因此无法在服务器上制作API

i have tried to copy APILifeCycle.xml from the api manager to the same location on the Identity server. 我试图将APILifeCycle.xml从api管理器复制到身份服务器上的相同位置。 the carbon super does have the apilifecycle in the extensions tab on carbon part of the apimanager but tenants does not. carbon super的确在apimanager的carbon部分的扩展选项卡中具有apilifecycle,但承租人没有。

i have have been researching on how i could fix this some other sources i have attempted with no luck is Link: http://ishara-cooray.blogspot.com/2018/01/how-to-fix-orgwso2carbonregistrycoreexc.html 我一直在研究如何解决这个我没有运气的其他来源的链接: http : //ishara-cooray.blogspot.com/2018/01/how-to-fix-orgwso2carbonregistrycoreexc.html
It have been set up like this link: https://docs.wso2.com/display/AM260/Configuring+WSO2+Identity+Server+as+a+Key+Manager 它已通过以下链接进行设置: https : //docs.wso2.com/display/AM260/Configuring+WSO2+Identity+Server+as+a+Key+Manager
What i expect to happen Users from tenants that can create and publish api's on their tenant domain 我希望发生的事情来自可以在租户域上创建和发布api的租户的用户

We have provided a fix for this issue and if you could take a WUM update ( https://wso2.com/updates/wum ) you could get the patch for this issue. 我们已经提供了针对此问题的修复程序,如果您可以进行WUM更新( https://wso2.com/updates/wum ),则可以获取此问题的补丁程序。

If you do not have access to WUM updates, Then try putting the APILifecycle.xml file to /repository/resources/lifecycles folder in IS (this shouldn't work with existing tenants. New tenants should work). 如果您无权访问WUM更新,则尝试将APILifecycle.xml文件放入IS中的/ repository / resources / lifecycles文件夹中(这不适用于现有租户。新租户应该可以使用)。 For existing tenants, you could log in to management console ( https://localhost:9443/carbon ) and navigate to Extensions > Configure > Lifecycles and upload the APILifecycle. 对于现有的租户,您可以登录到管理控制台( https:// localhost:9443 / carbon )并导航到Extensions> Configure> Lifecycles并上传APILifecycle。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM