[
https://issues.apache.org/jira/browse/NIFI-12513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799070#comment-17799070
]
Daniel Stieglitz edited comment on NIFI-12513 at 12/20/23 3:51 PM:
-------------------------------------------------------------------
[~exceptionfactory] I found in [Regular Expressions Cookbook 2nd
Edition|https://doc.lagout.org/programmation/Regular%20Expressions/Regular%20Expressions%20Cookbook_%20Detailed%20Solutions%20in%20Eight%20Programming%20Languages%20%282nd%20ed.%29%20%5BGoyvaerts%20%26%20Levithan%202012-09-06%5D.pdf]
that there are regular expressions for extracting the scheme, user, host,
port, path, query and fragment sections of a URL (Chapter 8 sections 8.8 -
8.14). Couldn't we use those to extract the pieces needed for the [URI
constructor
|https://docs.oracle.com/en/java/javase/21/docs//api/java.base/java/net/URI.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)]?
The only thing I did not see was a regular expression for parsing the password
which could be part of userInfo.
was (Author: JIRAUSER294662):
[~exceptionfactory] I found in [Regular Expressions Cookbook 2nd
Edition|https://doc.lagout.org/programmation/Regular%20Expressions/Regular%20Expressions%20Cookbook_%20Detailed%20Solutions%20in%20Eight%20Programming%20Languages%20%282nd%20ed.%29%20%5BGoyvaerts%20%26%20Levithan%202012-09-06%5D.pdf]
that there are regular expressions for extracting the scheme, user, host,
port, path, query and fragment sections of a URL (Chapter 8 sections 8.8 -
8.14). Couldn't we use those to extract the pieces needed for the [URI
constructor
|https://docs.oracle.com/en/java/javase/21/docs//api/java.base/java/net/URI.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)]
? The only thing I did not see was a regular expression for parsing the
password which could be part of userInfo.
> 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)