sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r1781859 - /sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
Date Mon, 06 Feb 2017 10:08:27 GMT
Author: olli
Date: Mon Feb  6 10:08:27 2017
New Revision: 1781859

URL: http://svn.apache.org/viewvc?rev=1781859&view=rev
Log:
SLING-6508 Remove (sub) service user from SlyBindingsValuesProvider

Modified:
    sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java

Modified: sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java?rev=1781859&r1=1781858&r2=1781859&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
(original)
+++ sling/trunk/bundles/scripting/sightly/js-use-provider/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
Mon Feb  6 10:08:27 2017
@@ -100,7 +100,6 @@ public class SlyBindingsValuesProvider {
     private static final String REQ_NS = SlyBindingsValuesProvider.class.getCanonicalName();
 
     private static final Logger LOGGER = LoggerFactory.getLogger(SlyBindingsValuesProvider.class);
-    private static final String SLING_SCRIPTING_USER = "sling-scripting";
 
     @Reference
     private ScriptEngineManager scriptEngineManager = null;
@@ -203,9 +202,7 @@ public class SlyBindingsValuesProvider {
             }
             jsEnvironment = new JsEnvironment(scriptEngine);
             jsEnvironment.initialize();
-            final Map<String, Object> authenticationInfo = new HashMap<>(1);
-            authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SLING_SCRIPTING_USER);
-            resolver = rrf.getServiceResourceResolver(authenticationInfo);
+            resolver = rrf.getServiceResourceResolver(null);
             factories = new HashMap<>(scriptPaths.size());
             for (Map.Entry<String, String> entry : scriptPaths.entrySet()) {
                 factories.put(entry.getKey(), loadFactory(resolver, jsEnvironment, entry.getValue(),
bindings));



Mime
View raw message