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

FtpOperations Delete operation not respecting Stepwise Attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.2
    • 2.7.3, 2.8.0
    • camel-ftp
    • None
    • All

    Description

      Current implementation of deleteFile(String name) ignores the Endpoints 'stepwise' requirement.

      This was noticed when interfacing with a MVS ftp system with the operation failing silently as the resulting exception is swallowed by higher order code.

      I've unfortunately been unable to create a test case that emulates the behavior, since the Apache FtpServer and associated mocks used within the test cases don't emulate the behavior of the MVS platform.

      I believe other operations suffer the same problem (e.g rename).

      I've attached a patch that corrects the issue. Existing test cases all pass, though someone will probably want to see if this implementation is the most efficient.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            dsmw dsmw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: