You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Boris Tyukin <bo...@boristyukin.com> on 2018/06/14 20:25:28 UTC
HandleHttpRequest and Allowed Paths
Hi,
I am following the example here with a simple web service
https://pierrevillard.com/2016/04/10/url-shortener-service-with-apache-nifi/
and want to make different endpoints like
localhost/admin:8011
localhost/info:8011
etc.
Looks like I need to set "Allowed Paths" property on HandleHttpRequest
processor but cannot make it work.
it works fine if I call just localhost:8011
I run NiFi on VM..
Thanks!
Re: HandleHttpRequest and Allowed Paths
Posted by Boris Tyukin <bo...@boristyukin.com>.
Hi Kevin,
you are right, my bad. But it was part of the problem. I put (admin,info)
as Allowed Path and was getting 404 error.
I just tried .*(admin|info) instead it worked!
thanks!
On Thu, Jun 14, 2018 at 4:31 PM Kevin Doran <kd...@apache.org> wrote:
> Hi Boris,
>
>
>
> Are those urls correct? It looks like the path and port are out of place,
> e.g.:
>
>
>
> localhost:8011/admin
>
> localhost:8011/info
>
>
>
> -Kevin
>
>
>
> *From: *Boris Tyukin <bo...@boristyukin.com>
> *Reply-To: *<us...@nifi.apache.org>
> *Date: *Thursday, June 14, 2018 at 16:26
> *To: *<us...@nifi.apache.org>
> *Subject: *HandleHttpRequest and Allowed Paths
>
>
>
> Hi,
>
>
>
> I am following the example here with a simple web service
>
>
> https://pierrevillard.com/2016/04/10/url-shortener-service-with-apache-nifi/
>
>
>
> and want to make different endpoints like
>
> localhost/admin:8011
>
> localhost/info:8011
>
>
>
> etc.
>
>
>
> Looks like I need to set "Allowed Paths" property on HandleHttpRequest
> processor but cannot make it work.
>
>
>
> it works fine if I call just localhost:8011
>
>
>
> I run NiFi on VM..
>
>
>
> Thanks!
>
Re: HandleHttpRequest and Allowed Paths
Posted by Kevin Doran <kd...@apache.org>.
Hi Boris,
Are those urls correct? It looks like the path and port are out of place, e.g.:
localhost:8011/admin
localhost:8011/info
-Kevin
From: Boris Tyukin <bo...@boristyukin.com>
Reply-To: <us...@nifi.apache.org>
Date: Thursday, June 14, 2018 at 16:26
To: <us...@nifi.apache.org>
Subject: HandleHttpRequest and Allowed Paths
Hi,
I am following the example here with a simple web service
https://pierrevillard.com/2016/04/10/url-shortener-service-with-apache-nifi/
and want to make different endpoints like
localhost/admin:8011
localhost/info:8011
etc.
Looks like I need to set "Allowed Paths" property on HandleHttpRequest processor but cannot make it work.
it works fine if I call just localhost:8011
I run NiFi on VM..
Thanks!