Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10841

Move operation will create a warning log message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.5, 2.18.2
    • 2.17.6, 2.18.3, 2.19.0
    • camel-ftp
    • None
    • Unknown
    • Regression

    Description

      I'm using an enpoint like this one :

      • sftp://myserver/folder1/folder2?idempotent=true&stepwise=false&...&move=../archive

      With 2.18.2, I have logs like this :

        2017-02-15T13:23:47.314 [Camel (camel-1) thread #10 - sftp://myserver/folder1/folder2] WARN  o.a.c.c.file.remote.SftpOperations - Cannot delete file: folder1/folder2/../archive/myfile.txt
      com.jcraft.jsch.SftpException: No such file
      	at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)
      	at com.jcraft.jsch.ChannelSftp.rm(ChannelSftp.java:1985)
      	at org.apache.camel.component.file.remote.SftpOperations.deleteFile(SftpOperations.java:435)
      	at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.renameFile(GenericFileProcessStrategySupport.java:100)
      

      the issue was introduced with CAMEL-10712

      Thanks to Guillaume Lundy for pointing that out

      Attachments

        Activity

          People

            siano Stephan Siano
            siano Stephan Siano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: