Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6944

NiFiClientUtil.getUrl Does Not Use Configured WEB_HTTP_PORT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • Tools and Build
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              drewkerrigan Drew
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m