sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-scripting-java] 08/43: SLING-2016 : Wrong object (javax.script.Bindings) is put into Sling Bindings request attribute
Date Tue, 07 Nov 2017 10:04:41 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.scripting.java-2.0.10
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-java.git

commit d0ba19f49bd08d3df13c3216202c27e1c76daf83
Author: Carsten Ziegeler <cziegeler@apache.org>
AuthorDate: Fri Mar 4 09:56:57 2011 +0000

    SLING-2016 : Wrong object (javax.script.Bindings) is put into Sling Bindings request attribute
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/java@1077859
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
b/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
index 41a8d74..a40fa68 100644
--- a/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
+++ b/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java
@@ -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

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message