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

Move operation will create a warning log message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.5, 2.18.2
    • Fix Version/s: 2.17.6, 2.18.3, 2.19.0
    • Component/s: camel-ftp
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Regression:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: