cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject git commit: Fixing initialization of ClaimMapper context
Date Fri, 26 Sep 2014 14:24:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes d83aa2b8d -> 7e80606e8


Fixing initialization of ClaimMapper context


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/7e80606e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/7e80606e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/7e80606e

Branch: refs/heads/2.7.x-fixes
Commit: 7e80606e8db706d559b555267a5a72bd0dd8866d
Parents: d83aa2b
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Fri Sep 26 16:10:09 2014 +0200
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Fri Sep 26 16:20:40 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7e80606e/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java
index 97971f6..3538e4e 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/mapper/JexlClaimsMapper.java
@@ -39,7 +39,6 @@ public class JexlClaimsMapper implements ClaimsMapper {
     private static final Logger LOG = LogUtils.getL7dLogger(JexlClaimsMapper.class);
 
     JexlEngine jexl = new JexlEngine();
-    JexlContext context = new MapContext();
     private Script script;
 
     public JexlClaimsMapper() {
@@ -62,6 +61,7 @@ public class JexlClaimsMapper implements ClaimsMapper {
 
     public ClaimCollection mapClaims(String sourceRealm, ClaimCollection sourceClaims,
         String targetRealm, ClaimsParameters parameters) {
+        JexlContext context = new MapContext();
         context.set("sourceClaims", sourceClaims);
         context.set("targetClaims", new ClaimCollection());
         context.set("sourceRealm", sourceRealm);


Mime
View raw message