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

Daniel Stieglitz edited comment on NIFI-12513 at 12/21/23 3:07 AM:
-------------------------------------------------------------------

[~exceptionfactory] That is what I thought the URI constructor does it encodes 
the path and query. See steps 8 and 9 on the javadocs of  [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)].
 

??8. If a query is given then a question-mark character ('?') is appended, 
followed by the query. Any character that is not a legal URI character is 
quoted.

9. Finally, if a fragment is given then a hash character ('#') is appended, 
followed by the fragment. Any character that is not a legal URI character is 
quoted.??


I think though I originally did not use the correct wording (i.e. encoding) as 
the Javadoc uses the word "quoting.


was (Author: JIRAUSER294662):
[~exceptionfactory] That is what I thought the URI constructor does it encodes 
the path and query. See steps 8 and 9 on the javadocs of  [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)].
 

??
8. If a query is given then a question-mark character ('?') is appended, 
followed by the query. Any character that is not a legal URI character is 
quoted.

9. Finally, if a fragment is given then a hash character ('#') is appended, 
followed by the fragment. Any character that is not a legal URI character is 
quoted.
??

I think though I originally did not use the correct wording (i.e. encoding) as 
the Javadoc uses the word "quoting.

> 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