Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the Owner of an Application feature is not working #961

Closed
niranRameshPeiris opened this issue Nov 17, 2022 · 1 comment
Closed

Comments

@niranRameshPeiris
Copy link

Description

Changing the Owner of an Application feature[1] is not working as expected. When we changed the owner of an application and delete the previous owner, the application key will not display in the Deportal UI. After that, we are not even allowed to re-generate new application keys. When we try to regenerate the Client Credentials it prints a set of ERRORs and will not allow us to regenerate.

[2022-11-10 16:35:28,122] ERROR - AbstractKeyManager Cannot retrieve service provider for the given consumer key : IQm8nWpkLiThVNV0afZSkJgSLmIa
org.wso2.carbon.apimgt.impl.kmclient.KeyManagerClientException: Received status code: 403 Reason: 
        at org.wso2.carbon.apimgt.impl.kmclient.KMClientErrorDecoder.decode_aroundBody0(KMClientErrorDecoder.java:29) ~[org.wso2.carbon.apimgt.impl_9.0.174.245.jar:?]
        at org.wso2.carbon.apimgt.impl.kmclient.KMClientErrorDecoder.decode(KMClientErrorDecoder.java:27) ~[org.wso2.carbon.apimgt.impl_9.0.174.245.jar:?]
        at feign.AsyncResponseHandler.handleResponse(AsyncResponseHandler.java:96) ~[io.github.openfeign.feign-core_11.0.0.jar:?]

[1] - https://apim.docs.wso2.com/en/4.0.0/consume/manage-application/advanced-topics/changing-the-owner-of-an-application/

Steps to Reproduce

  1. Create two users called "niran" and "krishan".
  2. Log into the Devportal using "krishan".
  3. Create an Application called "app1".
  4. Subscribe to an API.
  5. Generate Keys and invoke the API.
  6. After that change the ownership of the Application to "niran".
  7. Log into the Devportal using "niran".
  8. I can invoke the API using "app1".
  9. Then delete the user "krishan"
  10. Log into the Devportal using "niran".
  11. Try to generate a new token.

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@hisanhunais
Copy link

hisanhunais commented Jan 20, 2025

Public fix done via wso2-extensions/apim-km-wso2is#64 and wso2/carbon-apimgt#10845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants