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

Editing an old API revision results in a null pointer exception from the carbon registry Indexing #3392

Open
Oshanath opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels

Comments

@Oshanath
Copy link

Description

Since APIM does not have any flows that edit past API revisions, this flow has not been tested. But editing past API revision became a requirement with https://github.com/wso2-enterprise/wso2-apim-internal/issues/7431 where we need to decrypt and re-encrypt endpoint secrets stored in past API revisions.

Editing old API revisions result in a Null Pointer Exception due to null being returned from here and that null being accessed here

Steps to Reproduce

  1. Log into the publisher portal
  2. Deploy the Pizza Shack API
  3. Change some configuration and deploy another revision of the API
  4. Log into the carbon console and click on browse to browse registry artifacts
  5. Expand and click on _system -> governance -> apimgt -> applicationdata -> apis -> [api-uuid] -> [revision] -> api
  6. Change something like the port of the endpoint in endpoint configs
  7. Click on save API

Version

4.1.0

Environment Details (with versions)

No response

@Oshanath Oshanath self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant