Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-12785

InvokeHTTP handler should not urlencode HTTP URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.25.0, 2.0.0-M2
    • 1.26.0, 2.0.0-M3
    • Extensions
    • None
    • AlmaLinux 8.9 Kernel 4.18.0-513.5.1.el8_9.x86_64
      Apache NiFi 2.0.0-M2

    Description

      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

      Attachments

        1. M2-output.png
          172 kB
          macdoor615
        2. M1-output.png
          174 kB
          macdoor615

        Issue Links

          Activity

            People

              dstiegli1 Daniel Stieglitz
              macdoor615 macdoor615
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m