Spring Integration
  1. Spring Integration
  2. INT-2489

Provide a way to suppress the creation of a temporary file in the ftp outbound gateway

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 2.1 GA
    • Fix Version/s: 2.1.1
    • Labels:
      None

      Description

      We encountered a situation in which the server permissions allowed write but not rename. So the transfer fails. The server owners claim to be able to have another solution for partially written files. The fix requires adding a boolean to FileTransferringMessageHandler to circumvent creating a temporary file name and renaming it when done.

        Issue Links

          Activity

          Hide
          Oleg Zhurakousky added a comment -

          Well, i wonder if the solution would be exactly that, where temporary-suffix="" should shunt the rename.
          wdyt?

          Show
          Oleg Zhurakousky added a comment - Well, i wonder if the solution would be exactly that, where temporary-suffix="" should shunt the rename. wdyt?
          Hide
          Gary Russell added a comment -

          Right - that's what David and I concluded over IM (David's idea).

          If you explicitly set the suffix to "", we don't do the .writing/rename trick.

          Show
          Gary Russell added a comment - Right - that's what David and I concluded over IM (David's idea). If you explicitly set the suffix to "", we don't do the .writing/rename trick.
          Hide
          Oleg Zhurakousky added a comment -

          Ok, so we'll wait for PR, should be relatively simple

          Show
          Oleg Zhurakousky added a comment - Ok, so we'll wait for PR, should be relatively simple
          Show
          David Turanski added a comment - - edited PR is https://github.com/SpringSource/spring-integration/pull/385
          Hide
          David Turanski added a comment -

          Turns out we needed to add a use-temporary-file-name (boolean) flag to the s/ftp:outbound-channel-adapter. Defaults to 'true' and 'false' is invalid if the temporary-file-suffix is provided.

          Show
          David Turanski added a comment - Turns out we needed to add a use-temporary-file-name (boolean) flag to the s/ftp:outbound-channel-adapter. Defaults to 'true' and 'false' is invalid if the temporary-file-suffix is provided.

            People

            • Assignee:
              David Turanski
              Reporter:
              David Turanski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: