incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r634601 - /incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Date Fri, 07 Mar 2008 10:17:40 GMT
Author: bdelacretaz
Date: Fri Mar  7 02:17:40 2008
New Revision: 634601

URL: http://svn.apache.org/viewvc?rev=634601&view=rev
Log:
SLING-256 code re-added, was lost in revision 633823

Modified:
    incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java

Modified: incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java?rev=634601&r1=634600&r2=634601&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
(original)
+++ incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Fri Mar  7 02:17:40 2008
@@ -169,9 +169,13 @@
     /**
      * Returns the default workspace, which may be <code>null</code> meaning
      * to use the repository provided default workspace.
+     * Declared final to make sure the SLING-256 rule is enforced.
      */
     public final String getDefaultWorkspace() {
-        // Declared final to make sure the SLING-256 rule is enforced.
+        if(defaultWorkspace == null || defaultWorkspace.trim().length() == 0) {
+            // SLING-256
+            return null;
+        }
         return this.defaultWorkspace;
     }
 



Mime
View raw message