cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1497246 - /cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
Date Thu, 27 Jun 2013 08:50:50 GMT
Author: sergeyb
Date: Thu Jun 27 08:50:49 2013
New Revision: 1497246

URL: http://svn.apache.org/r1497246
Log:
[CXF-5092] Making sure the exception is not lost in case of the validation error

Modified:
    cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java?rev=1497246&r1=1497245&r2=1497246&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
Thu Jun 27 08:50:49 2013
@@ -109,8 +109,8 @@ public final class OAuthUtils {
         } catch (Exception ex) {
             if (token != null) {
                 provider.removeToken(token);
-                throw ex;
             }
+            throw ex;
         }
         if (token != null && validator instanceof DefaultOAuthValidator) {
             ((DefaultOAuthValidator)validator).validateToken(token, provider);



Mime
View raw message