sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sseif...@apache.org
Subject svn commit: r1731199 - /sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java
Date Fri, 19 Feb 2016 08:49:21 GMT
Author: sseifert
Date: Fri Feb 19 08:49:21 2016
New Revision: 1731199

URL: http://svn.apache.org/viewvc?rev=1731199&view=rev
Log:
SLING-5531 Sling-Namespaces bundle header for registering JCR namespaces broken

Modified:
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java?rev=1731199&r1=1731198&r2=1731199&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository2.java
Fri Feb 19 08:49:21 2016
@@ -286,7 +286,7 @@ public abstract class AbstractSlingRepos
             }
 
             final Session session = repository.login(credentials, workspace);
-            return session;
+            return getNamespaceAwareSession(session);
 
         } catch (final RuntimeException re) {
             // SLING-702: Jackrabbit throws IllegalStateException if the
@@ -393,7 +393,7 @@ public abstract class AbstractSlingRepos
         }
 
         logger.debug("SlingRepository.loginAdministrative is deprecated. Please use SlingRepository.loginService.");
-        return createAdministrativeSession(workspace);
+        return getNamespaceAwareSession(createAdministrativeSession(workspace));
     }
 
     // Remaining Repository service methods all backed by the actual



Mime
View raw message