Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3647

FTP upload stops when uploading to IIS FTP service "550 "

    XMLWordPrintableJSON

Details

    Description

      Hi

      when uploading to a Microsoft IIS FTP server there are some cases, when IIS FTP server does not conform strictly to RFC 959. For example when uploading to a non-existing subfolder Microsoft IIS responds with "550 ", giving the return code but omitting the reason.

      This throws a MalformedServerReplyException in Netbeans. (Please see the complete error log underneath).

      I believe, that this behaviour can be optimized by using the function https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTP.html#setStrictReplyParsing(boolean) .

      I understand, that this is strictly a Microsoft bug, but hopefully this can be updated in Netbeans since I do not see any chance of Microsoft changing this bug any time soon.

      I would really apreciate it, if this can be "fixed" in the next version.

      Thanks and Greetings from Germany

      Oli4

       

      Full error log:

      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Command listener: CWD /test/test
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Error while changing directory /test/test
      org.apache.commons.net.MalformedServerReplyException: Truncated server reply: '550 '
      at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:374)
      at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:300)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:523)
      at org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:568)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:648)
      at org.apache.commons.net.ftp.FTP.cwd(FTP.java:868)
      at org.apache.commons.net.ftp.FTPClient.changeWorkingDirectory(FTPClient.java:1167)
      [catch] at org.netbeans.modules.php.project.connections.ftp.FtpClient.changeWorkingDirectory(FtpClient.java:468)
      at org.netbeans.modules.php.project.connections.RemoteClient.cdRemoteDirectory(RemoteClient.java:1200)
      at org.netbeans.modules.php.project.connections.RemoteClient.cdBaseRemoteDirectory(RemoteClient.java:1195)
      at org.netbeans.modules.php.project.connections.RemoteClient.uploadFileInternal(RemoteClient.java:382)
      at org.netbeans.modules.php.project.connections.RemoteClient.uploadFile(RemoteClient.java:347)
      at org.netbeans.modules.php.project.connections.RemoteClient.upload(RemoteClient.java:328)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.upload(UploadCommand.java:150)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.uploadFiles(UploadCommand.java:98)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.invokeActionImpl(UploadCommand.java:82)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand$1.run(UploadCommand.java:69)
      at org.netbeans.modules.php.project.ui.actions.RemoteCommand$1.run(RemoteCommand.java:84)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      INFO [org.netbeans.modules.php.project.connections.RemoteClient]
      org.apache.commons.net.MalformedServerReplyException: Truncated server reply: '550 '
      at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:374)
      at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:300)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:523)
      at org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:568)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:648)
      at org.apache.commons.net.ftp.FTP.cwd(FTP.java:868)
      at org.apache.commons.net.ftp.FTPClient.changeWorkingDirectory(FTPClient.java:1167)
      [catch] at org.netbeans.modules.php.project.connections.ftp.FtpClient.changeWorkingDirectory(FtpClient.java:468)
      Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot change directory to /test/test.
      at org.netbeans.modules.php.project.connections.ftp.FtpClient.changeWorkingDirectory(FtpClient.java:472)
      at org.netbeans.modules.php.project.connections.RemoteClient.cdRemoteDirectory(RemoteClient.java:1200)
      at org.netbeans.modules.php.project.connections.RemoteClient.cdBaseRemoteDirectory(RemoteClient.java:1195)
      at org.netbeans.modules.php.project.connections.RemoteClient.uploadFileInternal(RemoteClient.java:382)
      [catch] at org.netbeans.modules.php.project.connections.RemoteClient.uploadFile(RemoteClient.java:347)at org.netbeans.modules.php.project.connections.RemoteClient.upload(RemoteClient.java:328)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.upload(UploadCommand.java:150)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.uploadFiles(UploadCommand.java:98)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand.invokeActionImpl(UploadCommand.java:82)
      at org.netbeans.modules.php.project.ui.actions.UploadCommand$1.run(UploadCommand.java:69)
      at org.netbeans.modules.php.project.ui.actions.RemoteCommand$1.run(RemoteCommand.java:84)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Remote client trying to disconnect
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Remote client connected -> disconnecting
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Command listener: QUIT
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Command listener: 221 Goodbye.
      FINE [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Remote client disconnected

      Attachments

        Activity

          People

            oli004 Oli4
            oli004 Oli4
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h