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

For GET requests, InvokeHTTP should set the filename of the 'Response' FlowFile based on the URL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Extensions

    Description

      When using InvokeHTTP to fetch the content of a particular URL, I expected that the filename of the 'Response' FlowFile would be set to the filename pulled. I.e., if I pulled http://www.somesite.com/images/1.png, I would have expected the 'Response' FlowFile to have a filename of "1.png" but instead it had the same filename as the incoming FlowFile.

      I don't think this is something that we can change until version 1.0.0 because it could potentially break backward compatibility of flows by changing the filename unexpectedly. In the meantime, I have added an UpdateAttribute to set the filename to ${url:substringAfterLast('/'):substringBefore('?')}

      Attachments

        Issue Links

          Activity

            People

              sabonyi Nandor Soma Abonyi
              markap14 Mark Payne
              Votes:
              0 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 - 7h 20m
                  7h 20m