Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

ListFTP not taking into account french special characters in filename [Nifi 1.21.0]

avatar
Explorer

Hello,

I have upgraded nifi from 1.16.3 to 1.21.0

Now, the processors ListFTP, FetchFTP, PutFTP won't work with filenames that contains french accents like à é etc..

It worked like a charm on Nifi 1.16.3

Could you please help me on this topic ? I will happy to provide all the information that you need to debug the problem.

 

Thank you.

sinRudra_0-1692202695966.png

 

sinRudra_1-1692202708872.png

 

sinRudra_2-1692202731958.png

 

1 ACCEPTED SOLUTION

avatar
Master Mentor

@sinRudra 

As a workaround you could take the "nifi-standard-nar-1.16.3.nar" from the NiFi 1.16.3 distro and add it to your NiFi 1.21 install.  This will give you access to both version of all the standard nar components. The nifi-standard-nar does however contain a lot of components besides just listFTP.  You'll end up seeing two available versions of a lot of components with either 1.21.0 or 1.16.3 as the version when adding components to the canvas.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt

View solution in original post

9 REPLIES 9

avatar
Community Manager

 

@sinRudra Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our NiFi experts @steven-matison  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

@sinRudra,

I do not think that your problem is related to the name itself and/or the characters. Your error messages states clearly that you do not have the required permissions to extract the file. If there would have been an issue with the name, you would have received an error message stating that the file cannot be found in that location. Make sure that you have all the configurations done properly to be able to access that ftp location.

avatar
Explorer

Hello @cotopaul 

 

Thanks for taking time to look at the issue.

 

I have tested with same ftp account on the nifi version 1.16.3 and 1.21.0. It works perfectly fine on 1.16.3.

 

FetchFtp gives the permission error because filename fetched from listftp contains characters (black question marks)

sinRudra_0-1692277732719.png

I can assure that the there is no problem concerning the permissions. with the Nifi 1.21.0, i fetched the files without special characters in the filename.

 

 

avatar
Master Mentor

@sinRudra 

I recommend reading through the comments, suggestions, and troubleshooting done within the following Apache NiFi Jira to see if you are encountering similar observations.
https://issues.apache.org/jira/browse/NIFI-10143

If so, it may be best to create a new Apache JIra for your specific character set issues to see what the committer community can do for you.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt

avatar
Explorer

Hello @MattWho 

 

Thanks for the jira link.

It seems that the following commit in the version nifi 1.17.0 have somehow broke the recognition of french characters : 

sinRudra_0-1692347876359.png

 to test it, i downloaded nifi 1.17.0 and ran the tests, got the following result

sinRudra_1-1692348050771.png

I will create a Apache Jira ticket.

 

In the interim, could you propose some alternative solutions? Perhaps a custom processor using the listftp code, but with modifications from version 1.17.0 removed? What are your thoughts?

 

Thank you for your help.

 

 

avatar
Master Mentor

@sinRudra 

As a workaround you could take the "nifi-standard-nar-1.16.3.nar" from the NiFi 1.16.3 distro and add it to your NiFi 1.21 install.  This will give you access to both version of all the standard nar components. The nifi-standard-nar does however contain a lot of components besides just listFTP.  You'll end up seeing two available versions of a lot of components with either 1.21.0 or 1.16.3 as the version when adding components to the canvas.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt

avatar
Explorer

Hello @MattWho 

 

Thanks for the workaround. I tested and it worked.

 

Thank you very much.

avatar

A solution and a jira, excellent work gents!   

avatar
Explorer

For information, jira ticket created.

 

https://issues.apache.org/jira/browse/NIFI-11967