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

ListFTP/GetFTP has issues with danish special characters (UTF-8)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.2
    • 1.17.0
    • Core Framework
    • None
    • NIFI Version 1.16.2, Java 8

    Description

      ListFTP and GetFTP has issues listing file/directories including danish charaters (æøå).

      The ftp server is MS IIS FTP, and UTF-8 has been set to true.
      with a small test flow, I used a GenerateFlowfile and added 2 Properties. filename="test.txt" and path="æøå". The output is going to a PutFTP, with Remote path set to ${path}
      The PutFTP does indeed create a subfolder at the ftp server, named æøå. But...

      With a ListFTP or GetFTP process, looking into the same root folder gives an error. 
      ListFTP[id=e4c43ea1-2d5d-1fea-ffff-ffff89c101ce] Unable to get listing from /���; skipping: java.io.IOException: Cannot list files for non-existent directory /���
       

      Testing the old case from NIFI-8250. I got issues with the arabic charaters too.
      PutFTP[id=e4c43ef3-2d5d-1fea-ffff-ffffea9da690] Unable to transfer FlowFile[filename=اختبار] to remote host 192.168.1.2 due to IOException thrown from PutFTP[id=e4c43ef3-2d5d-1fea-ffff-ffffea9da690]: java.io.IOException: Failed to store file .اختبار to /test/اختبار due to: 550 The filename, directory name, or volume label syntax is incorrect.
      : java.io.IOException: Failed to store file .اختبار to /test/اختبار due to: 550 The filename, directory name, or volume label syntax is incorrect.
      ; routing to failure: {}
       

      Attachments

        Issue Links

          Activity

            People

              pgrey Paul Grey
              jmkofoed Jens M Kofoed
              Votes:
              0 Vote for this issue
              Watchers:
              4 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
                  2h