You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by rw...@apache.org on 2005/12/23 03:41:41 UTC

svn commit: r358686 - /portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java

Author: rwatler
Date: Thu Dec 22 18:41:39 2005
New Revision: 358686

URL: http://svn.apache.org/viewcvs?rev=358686&view=rev
Log:
correct decorator undeployment path checking

Modified:
    portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java

Modified: portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java?rev=358686&r1=358685&r2=358686&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java (original)
+++ portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java Thu Dec 22 18:41:39 2005
@@ -195,9 +195,9 @@
     public void invokeUndeploy(File deployPathFile) throws DeploymentException
     {
 
-        if (deployPathFile == null || !deployPathFile.exists() || !deployPathFile.isDirectory()
-            || deployPathFile.getParentFile() == null || deployPathFile.getParentFile().getParentFile() == null
-            || !deployToDir.equals(deployPathFile.getParentFile().getParentFile().getParent()))
+        if (deployPathFile == null || !deployPathFile.exists() ||
+            !deployPathFile.isDirectory() || deployPathFile.getParentFile() == null ||
+            !deployToDir.equals(deployPathFile.getParentFile().getParent()))
         {
             throw new DeploymentException("Cannot undeploy decorator at " + deployPathFile + ": invalid decorator path");
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org