incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1077859 - /sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
Date Fri, 04 Mar 2011 09:56:58 GMT
Author: cziegeler
Date: Fri Mar  4 09:56:57 2011
New Revision: 1077859

URL: http://svn.apache.org/viewvc?rev=1077859&view=rev
Log:
SLING-2016 : Wrong object (javax.script.Bindings) is put into Sling Bindings request attribute

Modified:
    sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java

Modified: sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java?rev=1077859&r1=1077858&r2=1077859&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
(original)
+++ sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
Fri Mar  4 09:56:57 2011
@@ -203,7 +203,7 @@ public class JavaScriptEngineFactory
         try {
             final ServletWrapper servlet = getWrapperAdapter(scriptHelper);
 
-            request.setAttribute(SlingBindings.class.getName(), bindings);
+            request.setAttribute(SlingBindings.class.getName(), slingBindings);
             servlet.service(request, slingBindings.getResponse());
         } catch (SlingException se) {
             // rethrow as is



Mime
View raw message