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

fileExist=Move and tempFileName does not work together.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.16.5, 2.20.1
    • Fix Version/s: 2.19.5, 2.20.2, 2.21.0
    • Component/s: camel-core, camel-ftp
    • Labels:
      None
    • Environment:

      SUSE Linux Enterprise Server 11 (x86_64)
      VERSION = 11
      PATCHLEVEL = 4

      Description

      We are using camel-ftp for SFTP operations in pure integration all camel application.

      We had one scenario of putting large files on SFTP and another process will pick files from that location on periodic basis.

      So need to rename existing file with same so it won't be picked and also during the process we does not want to be picked.

      So we used both options together.
      1) fileExist=Move&moveExisting=${file:name.noext}-${date:now:ddMMyyyyHHmmss}.${file:ext}
      2) tempFileName=${file:onlyname}.inprogress

      But as per code Move operation is performed in XXXXOperations class and filename passed from GenericFileProducer is temporary file name to writeFile method.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              gaurang.parmar Gaurang Parmar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: