You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Patrick Laneville (Jira)" <ji...@apache.org> on 2019/09/20 17:30:00 UTC
[jira] [Created] (NIFI-6698) HandleHttpRequest does not handle
multiple URL parameters
Patrick Laneville created NIFI-6698:
---------------------------------------
Summary: HandleHttpRequest does not handle multiple URL parameters
Key: NIFI-6698
URL: https://issues.apache.org/jira/browse/NIFI-6698
Project: Apache NiFi
Issue Type: New Feature
Components: Core Framework
Affects Versions: 1.9.2
Environment: CentOS
Reporter: Patrick Laneville
The http.query.string parameter is updated. However, it is only updated properly when the URL contains a single parameter. Additional parameters are truncated when separated by an "&" in the URL.
Example
Attempt a GET on the following resource: [http://myserver.com/resource?name=ferret&color=purple:]
Result is the http.query.string attribute in the outgoing flow file is set to "name=ferret". The problem is the http.query.string should be set to "name=ferret&color=purple"
However, if you use URL encoding (encode & as %26) and specify [http://myserver.com/resource?name=ferret%26color=purple|http://myserver.com/resource?name=ferret&color=purple:]
then then http.query.string attribute in the outgoing flow file is set properly to "name=ferret&color=purple"
However, with the URL encoding work-around the attribute http.query.param.name is incorrectly set to "ferret&color=purple"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)