You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/11/04 14:35:56 UTC

svn commit: r711248 - in /incubator/sling/trunk/extensions/i18n/src/main: java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java resources/OSGI-INF/metatype/metatype.properties

Author: fmeschbe
Date: Tue Nov  4 05:35:56 2008
New Revision: 711248

URL: http://svn.apache.org/viewvc?rev=711248&view=rev
Log:
SLING-718 login as administrative user by defualt instead of anonymous

Modified:
    incubator/sling/trunk/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
    incubator/sling/trunk/extensions/i18n/src/main/resources/OSGI-INF/metatype/metatype.properties

Modified: incubator/sling/trunk/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java?rev=711248&r1=711247&r2=711248&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java (original)
+++ incubator/sling/trunk/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java Tue Nov  4 05:35:56 2008
@@ -353,7 +353,7 @@
                 Session s = null;
                 try {
                     if (repoCredentials == null) {
-                        s = repo.login();
+                        s = repo.loginAdministrative(null);
                     } else {
                         s = repo.login(repoCredentials);
                     }

Modified: incubator/sling/trunk/extensions/i18n/src/main/resources/OSGI-INF/metatype/metatype.properties
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/i18n/src/main/resources/OSGI-INF/metatype/metatype.properties?rev=711248&r1=711247&r2=711248&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/i18n/src/main/resources/OSGI-INF/metatype/metatype.properties (original)
+++ incubator/sling/trunk/extensions/i18n/src/main/resources/OSGI-INF/metatype/metatype.properties Tue Nov  4 05:35:56 2008
@@ -19,16 +19,15 @@
 
 provider.name = JCR ResourceBundle Provider
 provider.description = ResourceBundleProvider service which loads the messages \
- from the repository. You may configure how the provider accesses the \
- repository if the user name field is left empty, the provider accesses the \
- repository anonymously. Otherwise the given user name and password are used \
- to access the repository. Failing to access the repository, effectively \
- disables the provider.
+ from the repository. If the user name field is left empty, the provider will \
+ log into the repository as the administrative user. Otherwise the given user \
+ name and password are used to access the repository. Failing to access the \
+ repository, effectively disables the provider.
 
 user.name = User Name
 user.description = The name of the user to log in to the repository to get the \
  resources. If this field is empty, the provider accesses the repository as \
- the anonymous user.
+ the administrative user.
 
 password.name = Password
 password.description = The password used to log in to the repository to get \