Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4305

FTP InBound Channel Adapter failed to overwrite exisitng file if enable preserve timestamp

    XMLWordPrintable

    Details

      Description

      For FTP Inbound Channel Adapter, if preserve-timestamp="true" is set and the local directory contains the same target file, the .writing intermediate file will be generated but failed to overwrite the target file. Also, in this issue no exception will be thrown.

      <int-ftp:inbound-channel-adapter id="myChannel"
                                           channel="nullChannel"
                                           session-factory="cachingSessionFactory"
                                           filename-pattern="abc.txt"
                                           remote-directory="/"
                                           preserve-timestamp="true"
                                           local-directory="c:/temp">
          <int:poller cron="15 * * * * ?" max-messages-per-poll="1" />
      </int-ftp:inbound-channel-adapter>
      
      The abc.writing failed to overwrite the existing file, without any error message prompted.
      c:\temp> dir /a
      06/23/2017  11:44 AM           840,000 abc.txt
      06/23/2017  11:45 AM           840,000 abc.txt.writing
      

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            simonwg Simon Wong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: