[ 
https://issues.apache.org/jira/browse/NIFI-12513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799845#comment-17799845
 ] 

Daniel Stieglitz edited comment on NIFI-12513 at 12/22/23 2:10 PM:
-------------------------------------------------------------------

[~exceptionfactory]  [~pvillard] 
I am still working out the regular expression. In the meantime there is a 
workaround for at least InvokeHttp. For the 'HTTP URL' property use NIFI 
Expression Language and before the InvokeHttp processor use an UpdateAttribute 
processor to set an attribute with the value of getUri from the NIFI Expression 
Language. The value with the URL specified in the description would like 

{code:java}
${getUri('https', null, 'en.wikipedia.org', -1, '/w/api.php', 
'action=query&list=recentchanges&format=json&rcprop=user|comment|parsedcomment|timestamp|title|sizes|tags',
 null)}
{code}



was (Author: JIRAUSER294662):
[~exceptionfactory]  [~pvillard] 
I am still working out the regular expression. In the meantime there is a 
workaround for at least InvokeHttp. For the 'HTTP URL' property use NIFI 
Expression Language and before the InvokeHttp use UpdateAttribute to set an 
attribute with the value of getUri from the NIFI Expression Language. The value 
with the URL specified in the description would like 

{code:java}
${getUri('https', null, 'en.wikipedia.org', -1, '/w/api.php', 
'action=query&list=recentchanges&format=json&rcprop=user|comment|parsedcomment|timestamp|title|sizes|tags',
 null)}
{code}


> Regression in InvokeHTTP - Not a valid URL
> ------------------------------------------
>
>                 Key: NIFI-12513
>                 URL: https://issues.apache.org/jira/browse/NIFI-12513
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 2.0.0-M1, 1.24.0
>            Reporter: Pierre Villard
>            Assignee: Daniel Stieglitz
>            Priority: Major
>
> On NiFi 1.24 and NiFi 2.0-M1, the below URL
> {code:java}
> https://en.wikipedia.org/w/api.php?action=query&list=recentchanges&format=json&rcprop=user|comment|parsedcomment|timestamp|title|sizes|tags{code}
> Is no longer considered as valid but it was a valid one before.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to