Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-329

FtpWagon currently tries to invoka an invalid MKD command with nested directories

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha-7
    • 1.0
    • wagon-ftp
    • None

    Description

      Currently a wagon request to remotely create a deep subdirectory (unix equivalent would be mkdir -p /dir1/dir2/dir3) will result in a MKD invocation with the full deep subdirectory path.

      According to the FTP specification this is not valid (RFC-959 http://www.faqs.org/rfcs/rfc959.html APPENDIX II - DIRECTORY COMMANDS).

      There might be some FTP servers out there which curreclty create the directory, but 2 ftpd I tried just returned an error.

      Instead we should split up the directory paths and walk over them recursively.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment