[exo-jcr-commits] exo-jcr SVN: r2265 - jcr/branches/1.14.x/exo.jcr.component.ftp/src/main/java/org/exoplatform/services/ftp/command.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Apr 12 03:14:48 EDT 2010
Author: areshetnyak
Date: 2010-04-12 03:14:47 -0400 (Mon, 12 Apr 2010)
New Revision: 2265
Modified:
jcr/branches/1.14.x/exo.jcr.component.ftp/src/main/java/org/exoplatform/services/ftp/command/CmdSize.java
Log:
EXOJCR-633 : Add fix to CmdSize in JCR 1.14.x
Modified: jcr/branches/1.14.x/exo.jcr.component.ftp/src/main/java/org/exoplatform/services/ftp/command/CmdSize.java
===================================================================
--- jcr/branches/1.14.x/exo.jcr.component.ftp/src/main/java/org/exoplatform/services/ftp/command/CmdSize.java 2010-04-12 07:10:56 UTC (rev 2264)
+++ jcr/branches/1.14.x/exo.jcr.component.ftp/src/main/java/org/exoplatform/services/ftp/command/CmdSize.java 2010-04-12 07:14:47 UTC (rev 2265)
@@ -55,8 +55,15 @@
}
String resName = params[1];
-
+
ArrayList<String> newPath = clientSession().getFullPath(resName);
+
+ if (newPath.size() == 0)
+ {
+ reply(String.format(FtpConst.Replyes.REPLY_550_SIZE, resName));
+ return;
+ }
+
String repoPath = clientSession().getRepoPath(newPath);
try
{
More information about the exo-jcr-commits
mailing list