nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l vic <lvic4...@gmail.com>
Subject expression failure in URL concatenation?
Date Thu, 31 Jan 2019 21:42:31 GMT
I am using processor group variable as base part of my URL:
REST_URL=http://localhost:8080/nifi-api

I am trying to append second part of URL in InvokeHTTP regardless if
REST_URL ends with '/', or not so that concatenation of "
http://localhost:8080/nifi-api/", or "http://localhost:8080/nifi-api" with
"resources" return the same URL: "http://localhost:8080/nifi-api/resources":

*${${REST_URL}:endsWith('/'):ifElse('${REST_URL}resources','${REST_URL}/resources')}*


But the expression always appends '/', so in the first case I end up
with *"http://localhost:8080/nifi-api//resources
<http://localhost:8080/nifi-api//resources>"*... Any idea where the error
is?

Thank you,

Mime
View raw message