[
https://issues.apache.org/jira/browse/NIFI-12785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824804#comment-17824804
]
ASF subversion and git services commented on NIFI-12785:
--------------------------------------------------------
Commit 611d268f674a02d22122c030966fbf687bf28019 in nifi's branch
refs/heads/support/nifi-1.x from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=611d268f67 ]
NIFI-12785 Corrected InvokeHTTP URL handling to avoid double encoding
This closes #8459
Signed-off-by: David Handermann <[email protected]>
> InvokeHTTP handler should not urlencode HTTP URL
> ------------------------------------------------
>
> Key: NIFI-12785
> URL: https://issues.apache.org/jira/browse/NIFI-12785
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.25.0, 2.0.0-M2
> Environment: AlmaLinux 8.9 Kernel 4.18.0-513.5.1.el8_9.x86_64
> Apache NiFi 2.0.0-M2
> Reporter: macdoor615
> Assignee: Daniel Stieglitz
> Priority: Major
> Attachments: M1-output.png, M2-output.png
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> InvokeHTTP processor call HTTP URL
> [http://hb3-ifz-gitlab-000:8100/gitlab/api/v4/projects/318/repository/files/ftp%2Fstage%2F15m%2Fheshangwuzhibo.yaml/raw?ref=main]
> output attribute
> invokehttp.request.url:
> [http://hb3-ifz-gitlab-000:8100/gitlab/api/v4/projects/318/repository/files/ftp%252Fstage%252F15m%252Fheshangwuzhibo.yaml/raw?ref=main]
>
> invokehttp.status.code: 404
>
> The situation is different for version 2.0.0-M1, output attribute
> invokehttp.request.url:
> [http://hb3-ifz-gitlab-000:8100/gitlab/api/v4/projects/318/repository/files/ftp%2Fstage%2F15m%2Fheshangwuzhibo.yaml/raw?ref=main]
>
> invokehttp.status.code: 200
>
> I found that in the M2 version % symbol was urlencoded to %25, M1 version.
> The M1 version does not urlencode
>
> pls refer to the uploaded pictures
--
This message was sent by Atlassian Jira
(v8.20.10#820010)