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

Content Viewer not working when cluster is behind reverse proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • Core UI
    • None
    • Amazon Linux, CentOS 6 & 7

    Description

      As a clustered NiFi user I need to be able to use the configurable NiFi content viewer to view flow file content. Currently, it works perfectly if the cluster is NOT behind a reverse proxy, like nginx, or AWS load balancer. It appears that the ref URL is not being properly formed or appropriate headers are not being sent with the view content request. Below is an example of the issue with another example where a modified URL does work.

      NOTE: URLs will not be reachable and are presented in this ticket for illustrative purposes, but the attached screenshots show the effect of the URLs

      DOES NOT WORK:
      https://nifi-gray.unrulyfire.com/nifi-content-viewer/?ref=https%3A%2F%2Fnifi-gray.unrulyfire.com%3A443%2Fnifi-api%2Fflowfile-queues%2Fb4aa9ade-015e-1000-ffff-ffff8856fa2d%2Fflowfiles%2Fb7c9b786-b85c-4feb-83a2-00bfcd0ffad5%2Fcontent%3FclusterNodeId%3D8b0cc92a-6266-4f3d-bcb0-95d994086c80

      DOES WORK :
      https://nifi-gray.unrulyfire.com/nifi-content-viewer/?ref=http%3A%2F%2F172.31.40.138%3A8080%2Fnifi-api%2Fflowfile-queues%2Fb4aa9ade-015e-1000-ffff-ffff8856fa2d%2Fflowfiles%2Fb7c9b786-b85c-4feb-83a2-00bfcd0ffad5%2Fcontent%3FclusterNodeId%3D8b0cc92a-6266-4f3d-bcb0-95d994086c80

      Note that the working example replaces the ref URL with an internal nifi node IP/URI

      I would be happy to work the issue, but I have been unable to figure out where these request parameters are collected.

      Attachments

        1. Screen Shot 2017-09-24 at 1.03.23 PM.png
          41 kB
          Richard St. John
        2. Screen Shot 2017-09-24 at 1.03.33 PM.png
          41 kB
          Richard St. John

        Issue Links

          Activity

            People

              mcgilman Matt Gilman
              rstjohn Richard St. John
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: