incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r563671 - in /incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver: command/MKD.java message/FtpStatus.properties
Date Tue, 07 Aug 2007 21:55:04 GMT
Author: ngn
Date: Tue Aug  7 14:55:03 2007
New Revision: 563671

URL: http://svn.apache.org/viewvc?view=rev&rev=563671
Log:
Fixed issue where we returned the wrong success code on MKD (FTPSERVER-102)

Modified:
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/command/MKD.java
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/message/FtpStatus.properties

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/command/MKD.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/command/MKD.java?view=diff&rev=563671&r1=563670&r2=563671
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/command/MKD.java (original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/command/MKD.java Tue Aug
 7 14:55:03 2007
@@ -114,7 +114,7 @@
         
         // now create directory
         if(file.mkdir()) {
-            out.write(FtpReplyUtil.translate(session, FtpReply.REPLY_250_REQUESTED_FILE_ACTION_OKAY,
"MKD", fileName));
+            out.write(FtpReplyUtil.translate(session, FtpReply.REPLY_257_PATHNAME_CREATED,
"MKD", fileName));
             
             // write log message
             String userName = session.getUser().getName();

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/message/FtpStatus.properties
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/message/FtpStatus.properties?view=diff&rev=563671&r1=563670&r2=563671
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/message/FtpStatus.properties
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/message/FtpStatus.properties
Tue Aug  7 14:55:03 2007
@@ -120,7 +120,7 @@
 550.MKD.invalid={output.msg}\: not a valid file.
 550.MKD.exists={output.msg}\: already exists.
 550.MKD.permission=No permission to create {output.msg}.
-250.MKD=\"{output.msg}\" created.
+257.MKD=\"{output.msg}\" created.
 550.MKD=Can't create directory {output.msg}.
 
 150.MLSD=File status okay; about to open data connection.



Mime
View raw message