You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2011/11/11 17:02:52 UTC

svn commit: r1200924 - /sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java

Author: justin
Date: Fri Nov 11 16:02:51 2011
New Revision: 1200924

URL: http://svn.apache.org/viewvc?rev=1200924&view=rev
Log:
SLING-2274 - getting configuration regardless of bundle binding

Modified:
    sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java

Modified: sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java?rev=1200924&r1=1200923&r2=1200924&view=diff
==============================================================================
--- sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java (original)
+++ sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/servlets/AnonymousAccessConfigServlet.java Fri Nov 11 16:02:51 2011
@@ -68,7 +68,7 @@ public class AnonymousAccessConfigServle
         String action = request.getParameter("action");
         if ("disable".equals(action)) {
             int existingModifiedCounter = modifiedCounter;
-            Configuration config = configAdmin.getConfiguration(AUTH_PID);
+            Configuration config = configAdmin.getConfiguration(AUTH_PID, null);
             Dictionary props = config.getProperties();
             if (props == null) {
                 props = new Hashtable();
@@ -78,7 +78,7 @@ public class AnonymousAccessConfigServle
             waitForModified(existingModifiedCounter, TIMEOUT);
         } else if ("enable".equals(action)) {
             int existingModifiedCounter = modifiedCounter;
-            Configuration config = configAdmin.getConfiguration(AUTH_PID);
+            Configuration config = configAdmin.getConfiguration(AUTH_PID, null);
             Dictionary props = config.getProperties();
             if (props == null) {
                 props = new Hashtable();