I've gone ahead and issues a PR [1] for this issue. Feel free to check it out and verify it in your environment if possible.
Thanks Matt [1] https://github.com/apache/nifi/pull/2482 On Tue, Feb 20, 2018 at 9:33 AM, Matt Gilman <matt.c.gil...@gmail.com> wrote: > Thanks for the email. I just looked and this does appear to be a bug in > the Javascript that was introduced in 1.5.0 when addressing this issue [1]. > I've filed a JIRA [2] to address this issue. > > Matt > > [1] https://issues.apache.org/jira/browse/NIFI-4518 > [2] https://issues.apache.org/jira/browse/NIFI-4894 > > On Mon, Feb 19, 2018 at 4:28 PM, Alexander Lobunets < > alexander.lobun...@gmail.com> wrote: > >> Hello all, >> >> I'm trying to use NiFi behind the proxy (tried both options: Nginx and >> Apache2). In every case I get the NiFi UI loaded properly and I'm able to >> compose a simple flow, define service controller. But when I try to >> disable/edit service controller I receive an ERROR dialog with the >> following content: >> >> <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> >> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.10.3 >> (Ubuntu)</center> </body> </html> >> When I look into the inspection page I see 404 for the following request: >> https://<my domain here>/nifi-api/flow/bulletin-b >> oard?sourceId=bf7ec936-d34e-3e0a-3624-33f457e2c7a2 >> which does not have a URI prefix (context path) my proxy is configured >> with: "/admin". When I add the missing prefix manually I do receive a >> proper HTTP response. >> >> As a result this prevents me from disabling/modifying/deleting service >> controller. >> The proxy configurations are provided below. >> >> Did anyone face the similar issue? Is this a bug or a possible >> misconfiguration? >> >> Thank you in advance, >> Alexander >> >> >> ====== Nginx proxy config ===== >> location ~ ^/admin(?<section>.*) { >> proxy_pass http://127.0.0.1:8080$section$is_args$args; >> proxy_redirect off; >> proxy_set_header X-ProxyScheme "https"; >> proxy_set_header X-ProxyHost $http_host; >> proxy_set_header X-ProxyPort 443; >> proxy_set_header X-ProxyContextPath "/admin"; >> proxy_connect_timeout 180; >> proxy_send_timeout 180; >> proxy_read_timeout 180; >> } >> ============================ >> >> ===== Apache proxy config ======= >> <Location "/admin"> >> RequestHeader add X-ProxyScheme "http" >> RequestHeader add X-ProxyHost "<here comes my domain>" >> RequestHeader add X-ProxyPort "80" >> RequestHeader add X-ProxyContextPath "/admin" >> ProxyPass http://127.0.0.1:8080 >> ProxyPassReverse http://127.0.0.1:8080 >> </Location> >> >> ============================ >> >> -- >> All the best, >> Alexander. >> > >