[
https://issues.apache.org/jira/browse/NIFI-6235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Naylor reassigned NIFI-6235:
---------------------------------
Assignee: Andy Naylor
> JettyServer Loads content viewers in arbitrary order
> ----------------------------------------------------
>
> Key: NIFI-6235
> URL: https://issues.apache.org/jira/browse/NIFI-6235
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core UI, Extensions
> Affects Versions: 1.9.2
> Reporter: Jeffrey Ripps
> Assignee: Andy Naylor
> Priority: Major
>
> The org.apache.nifi.web.server.JettyServer creates a map of "otherWars" which
> is where both the nifi-standard-content-viewer and other custom content
> viewers are placed when nifi loads.
> Then in the loadWars method a map called mimeMappings is created. This is
> where the servletContext will go to lookup, for a given mime-type flowfile
> attribute, which content-viewer to point to. Because everything is iterated
> over as a set, the order with which these content-viewer wars is loaded
> becomes arbitrary and inconsistent.
> Nifi should either decide that it wants to enforce loading its own standard
> content viewer last and therefor force known mime types to be viewed in the
> standard viewer OR (and this is what I would think would make the most sense)
> ensure the nifi-standard-content-viewer is loaded first and therefore custom
> content viewers in other nars can create custom viewers that will be directed
> to instead of the standard content viewer for a given mimeType listed in
> their own META-INF/nifi-content-viewer file.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)