[ 
https://issues.apache.org/jira/browse/NIFI-6235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-6235.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> 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
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> 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.20.10#820010)

Reply via email to