You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ivana Cace <iv...@yarden.nl> on 2017/12/22 10:01:19 UTC

Handling Camel sftp endpoint authentication failure.

Is there any sane way to handle authentication failure at an sftp endpoint?

I have a camel route with a sftp endpoint, specifically it moves files to sftp. When the sftp location is not available, i want to:
* If its an authentication failure, log, and do not retry. Move original files to failure folder.
* If the host is unknow, log and dont retry. Move original files to failure folder.
* Otherwise: retry a couple of times before failure.

Unfortunately SftpOperations always keeps on retrying.  In the case of authentication failure (which can easily happen if the person deploying the app makes a typo in the properties file) this means repeated attempts with the wrong credentials. If it's just the password that is wrong, it may lead to the user being blocked.

Any help appreciated. I have seen many related sftp questions on this list but no real answers.

Ivana


***************************************** De informatie verzonden in deze e-mail (inclusief bijlagen) kan vertrouwelijk van aard zijn en is uitsluitend bestemd voor de geadresseerde(n). Indien deze e-mail niet voor u bestemd is, verzoeken wij u vriendelijk het bericht te retourneren en vervolgens te vernietigen. Yarden doet er alles aan om ervoor te zorgen dat verzonden e-mailberichten vrij zijn van virussen, maar kan dit niet garanderen. Yarden Holding B.V., statutair gevestigd te Almere, Handelsregisternummer 34155452 Yarden Uitvaartfaciliteiten B.V., statutair gevestigd te Almere, Handelsregisternummer 30104432 Yarden Uitvaartzorg B.V., statutair gevestigd te Almere, Handelsregisternummer 04050164 Yarden Uitvaartverzekeringen N.V., statutair gevestigd te Almere, Handelsregisternummer 33244450 *****************************************