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

Added custom API Indexing handler to bypass indexing of old API revisions. #12725

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Oshanath
Copy link
Contributor

@Oshanath Oshanath commented Dec 16, 2024

Description

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

This fix will create a new Indexing Handler that extends the Indexer handler in the carbon registry. it will check if the API being processed is an old revision, and will return immediately if so.

If it's a current API, it will call the superclass method which will trigger indexing as usual.

The registry.xml.j2 file of the product will have to be updated so that the Indexing handler is pointed to the new class.

This will fix the public issue - wso2/api-manager#3392

@npamudika npamudika merged commit 80ca7fa into wso2:master Dec 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants