You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/03/10 19:54:46 UTC
[GitHub] [nifi] anaylor opened a new pull request #4130: NIFI-6235 -
Prioritizing standard content war loading order
anaylor opened a new pull request #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130
Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
#### Description of PR
_Adds standard content viewer wars to a prioritized list to be loaded before any custom content viewers. This fixes [NIFI-6235 JettyServer Loads content viewers in arbitrary order](https://issues.apache.org/jira/browse/NIFI-6235)_
### For all changes:
- [x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [x] Does your PR title start with **NIFI-XXXX** where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
- [x] Has your PR been rebased against the latest commit within the target branch (typically `master`)?
- [x] Is your initial contribution a single, squashed commit? _Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not `squash` or use `--force` when pushing to allow for clean monitoring of changes._
### For code changes:
- [x] Have you ensured that the full suite of tests is executed via `mvn -Pcontrib-check clean install` at the root `nifi` folder?
- [x] Have you written or updated unit tests to verify your changes?
- [ ] Have you verified that the full build is successful on both JDK 8 and JDK 11?
- [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE` file, including the main `LICENSE` file under `nifi-assembly`?
- [ ] If applicable, have you updated the `NOTICE` file, including the main `NOTICE` file found under `nifi-assembly`?
- [ ] If adding new Properties, have you added `.displayName` in addition to .name (programmatic access) for each of the new properties?
### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [nifi] mcgilman commented on issue #4130: NIFI-6235 - Prioritizing
standard content war loading order
Posted by GitBox <gi...@apache.org>.
mcgilman commented on issue #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130#issuecomment-604131538
Happy too... Reviewing...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [nifi] mcgilman commented on a change in pull request #4130:
NIFI-6235 - Prioritizing standard content war loading order
Posted by GitBox <gi...@apache.org>.
mcgilman commented on a change in pull request #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130#discussion_r398229491
##########
File path: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java
##########
@@ -237,26 +236,25 @@ private Handler loadInitialWars(final Set<Bundle> bundles) {
webContentViewerWar = war;
} else if (war.getName().toLowerCase().startsWith("nifi-web")) {
webUiWar = war;
+ } else if (war.getName().toLowerCase().startsWith("nifi-standard-content")) {
Review comment:
NiFi also ships with content viewers in other NARs. Specifically, I believe we have some for viewing images in the media NAR. I'm not sure we can generally consider stuff in `nifi-standard-content` as the only standard content viewers.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [nifi] mcgilman edited a comment on issue #4130: NIFI-6235 -
Prioritizing standard content war loading order
Posted by GitBox <gi...@apache.org>.
mcgilman edited a comment on issue #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130#issuecomment-604131538
Happy to... Reviewing...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [nifi] joewitt commented on issue #4130: NIFI-6235 - Prioritizing
standard content war loading order
Posted by GitBox <gi...@apache.org>.
joewitt commented on issue #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130#issuecomment-604124619
@mcgilman any chance you have some cycles to eyeball this one? It is dancing in the the danger zone but from my quick look seems legit
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [nifi] anaylor commented on issue #4130: NIFI-6235 - Prioritizing
standard content war loading order
Posted by GitBox <gi...@apache.org>.
anaylor commented on issue #4130: NIFI-6235 - Prioritizing standard content war loading order
URL: https://github.com/apache/nifi/pull/4130#issuecomment-606089157
Hey @mcgilman thanks for taking a look
I am not sure if adding additional known content-viewers for the same media type would cause an overwrite, but the current behavior will not allow additional content viewer types to be added to the mimeMapping unless the war that contains those content-viewers is loaded after the nifi-standard-content viewer.
I am not sure if this is the correct fix for Apache Nifi but it does resolve the problem of loading custom content viewers in additional wars.
Let me know if this makes sense.
Thanks
Andy
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services