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:14:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 8b495fae9 -> 695864277


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/69586427
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/69586427
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/69586427

Branch: refs/heads/master
Commit: 695864277a5a1fd597293c5321e129f4a9b01efd
Parents: 8b495fa
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:10:09 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/69586427/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 796e50c..9226453 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 ProcessedClaimCollection mapClaims(String sourceRealm, ProcessedClaimCollection
sourceClaims,
         String targetRealm, ClaimsParameters parameters) {
+        JexlContext context = new MapContext();
         context.set("sourceClaims", sourceClaims);
         context.set("targetClaims", new ProcessedClaimCollection());
         context.set("sourceRealm", sourceRealm);


Mime
View raw message