-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
NIFI-13609 Correct Component Search Configuration #9131
Conversation
- Removed duplicate Controller Search Service bean definition - Wired Controller Search Service to Controller Facade bean definition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing this fix... With a single processor on the canvas the search worked correctly. I then added a child PG with a processor inside it, went back to root group and searched and got a 500 response, checked the logs and found:
2024-07-31 13:14:35,345 ERROR [NiFi Web Server-64] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException: Cannot invoke "org.apache.nifi.controller.FlowController.getControllerServiceProvider()" because "this.flowController" is null. Returning Internal Server Error response.
java.lang.NullPointerException: Cannot invoke "org.apache.nifi.controller.FlowController.getControllerServiceProvider()" because "this.flowController" is null
at org.apache.nifi.web.search.attributematchers.SearchableMatcher.match(SearchableMatcher.java:44)
at org.apache.nifi.web.search.attributematchers.SearchableMatcher.match(SearchableMatcher.java:32)
at org.apache.nifi.web.search.AttributeBasedComponentMatcher.lambda$match$0(AttributeBasedComponentMatcher.java:46)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at org.apache.nifi.web.search.AttributeBasedComponentMatcher.match(AttributeBasedComponentMatcher.java:46)
at org.apache.nifi.web.controller.ControllerSearchService.lambda$searchComponentType$2(ControllerSearc
Refreshing the page and deleting the child PG put it back to working.
Thanks for the feedback @bbende. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest update looks good and previous issue is working now, thanks! Will merge after CI builds
Summary
NIFI-13609 Corrects the Component Search configuration definitions to avoid failures when using the search field in the web user interface.
Changes include removing a duplicate Controller Search Service bean definition and wiring in the correct Controller Search Service to the Controller Facade bean definition.
This issue does not impact released versions and was a result of recent changes with Spring Framework configuration refactoring.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation