You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "exceptionfactory (via GitHub)" <gi...@apache.org> on 2024/07/31 16:47:12 UTC
[PR] NIFI-13609 Correct Component Search Configuration [nifi]
exceptionfactory opened a new pull request, #9131:
URL: https://github.com/apache/nifi/pull/9131
# Summary
[NIFI-13609](https://issues.apache.org/jira/browse/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
- [X] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created
### Pull Request Tracking
- [X] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000`
- [X] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000`
### Pull Request Formatting
- [X] Pull Request based on current revision of the `main` branch
- [X] Pull Request refers to a feature branch with one commit containing changes
# Verification
Please indicate the verification steps performed prior to pull request creation.
### Build
- [X] Build completed using `mvn clean install -P contrib-check`
- [X] JDK 21
### Licensing
- [ ] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html)
- [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` files
### Documentation
- [ ] Documentation formatting appears as expected in rendered files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] NIFI-13609 Correct Component Search Configuration [nifi]
Posted by "exceptionfactory (via GitHub)" <gi...@apache.org>.
exceptionfactory commented on PR #9131:
URL: https://github.com/apache/nifi/pull/9131#issuecomment-2261037796
> 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 `SearchableMatcher` was also missing a reference to `FlowController`, now corrected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] NIFI-13609 Correct Component Search Configuration [nifi]
Posted by "bbende (via GitHub)" <gi...@apache.org>.
bbende merged PR #9131:
URL: https://github.com/apache/nifi/pull/9131
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org