You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Drew (Jira)" <ji...@apache.org> on 2019/12/12 00:43:00 UTC

[jira] [Updated] (NIFI-6944) NiFiClientUtil.getUrl Does Not Use Configured WEB_HTTP_PORT

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

Drew updated NIFI-6944:
-----------------------
    Description: 
I ran into this when attempting to use the node-manager.sh tool to get cluster status. The node was configured with a custom WEB_HTTP_PORT in nifi.properties, but it still attempted to use WEB_HTTP_HOST:8080 to contact the node. After some digging I found the problem here: [https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-admin/src/main/groovy/org/apache/nifi/toolkit/admin/client/NiFiClientUtil.groovy#L59]

 

Basically getUrl tries to use the WEB_HTTPS_PORT if configured, but ends up defaulting to 8080 since to get into that else block, WEB_HTTPS_PORT was already empty.

 

This bug probably effects the NotificationTool in addition to the NodeManagerTool.

  was:
I ran into this when attempting to use the node-manager.sh tool to get cluster status. The node was configured with a custom WEB_HTTP_PORT in nifi.properties, but it still attempted to use WEB_HTTP_HOST:8080 to contact the node. After some digging I found the problem here: [https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-admin/src/main/groovy/org/apache/nifi/toolkit/admin/client/NiFiClientUtil.groovy#L59]

 

Basically getUrl tries to use the WEB_HTTPS_PORT if configured, but ends up defaulting to 8080 since to get into that else block, WEB_HTTPS_PORT was already empty.

 

This bug probably effectl the NotificationTool in addition to the NodeManagerTool.


> NiFiClientUtil.getUrl Does Not Use Configured WEB_HTTP_PORT
> -----------------------------------------------------------
>
>                 Key: NIFI-6944
>                 URL: https://issues.apache.org/jira/browse/NIFI-6944
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: Drew
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I ran into this when attempting to use the node-manager.sh tool to get cluster status. The node was configured with a custom WEB_HTTP_PORT in nifi.properties, but it still attempted to use WEB_HTTP_HOST:8080 to contact the node. After some digging I found the problem here: [https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-admin/src/main/groovy/org/apache/nifi/toolkit/admin/client/NiFiClientUtil.groovy#L59]
>  
> Basically getUrl tries to use the WEB_HTTPS_PORT if configured, but ends up defaulting to 8080 since to get into that else block, WEB_HTTPS_PORT was already empty.
>  
> This bug probably effects the NotificationTool in addition to the NodeManagerTool.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)