[ https://issues.apache.org/jira/browse/NIFI-12513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799863#comment-17799863 ]
Daniel Stieglitz commented on NIFI-12513: ----------------------------------------- [~exceptionfactory] I found the following [Stackoverflow Post|https://stackoverflow.com/questions/60324474/how-to-parse-any-url-uri-in-java] where the question seems to be the exact problem in the description of this ticket (i.e. the part about URI construction failing when there are illegal characters). The suggestion in that post is the use of Spring's [UriComponentsBuilder|https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java]. The questioner responded ??If you are on a non-Spring application the library org.springframework:spring-web and it's dependencies are a big bunch of code (~3.4MB at the moment for 5.2.3) just for parsing URIs. But the Regex pattern URI_PATTERN in the linked code and the fromUriString(String) method seems to be of great value. And it is under Apache 2 license?? If its under Apache License can we take advantage of the code in a different form as the questioner seemed to imply? He is right the Regex pattern URI_PATTERN in the linked code and the fromUriString(String) method seems to be of great value. > 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)