Oli4 created NETBEANS-3647:
------------------------------
Summary: FTP upload stops when uploading to IIS FTP service "550 "
Key: NETBEANS-3647
URL: https://issues.apache.org/jira/browse/NETBEANS-3647
Project: NetBeans
Issue Type: Bug
Components: php - FTP Support
Affects Versions: 11.2, 11.1, 11.0
Reporter: Oli4
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists