incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1203386 - /sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
Date Thu, 17 Nov 2011 21:51:17 GMT
Author: justin
Date: Thu Nov 17 21:51:17 2011
New Revision: 1203386

URL: http://svn.apache.org/viewvc?rev=1203386&view=rev
Log:
SLING-2293 - wrapping call to RelayingParty.newInstance() with TTCL reset code

Modified:
    sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java

Modified: sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java?rev=1203386&r1=1203385&r2=1203386&view=diff
==============================================================================
--- sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
(original)
+++ sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
Thu Nov 17 21:51:17 2011
@@ -769,7 +769,13 @@ public class OpenIDAuthenticationHandler
                     new String(cookieSecret));
             }
 
-            relyingParty = RelyingParty.newInstance(openIdProps);
+            final ClassLoader oldTCCL = Thread.currentThread().getContextClassLoader();
+            Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
+            try {
+                relyingParty = RelyingParty.newInstance(openIdProps);
+            } finally {
+                Thread.currentThread().setContextClassLoader(oldTCCL);
+            }
         }
         return relyingParty;
     }



Mime
View raw message