You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2015/08/27 18:41:14 UTC

cxf git commit: [CXF-6561] Minor update

Repository: cxf
Updated Branches:
  refs/heads/master 8c5e1fb7c -> d322272a5


[CXF-6561] Minor update


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

Branch: refs/heads/master
Commit: d322272a517272e9f87e3db1163b5e65386f7ef8
Parents: 8c5e1fb
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Thu Aug 27 17:40:57 2015 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Thu Aug 27 17:40:57 2015 +0100

----------------------------------------------------------------------
 .../rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d322272a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java
index 58718b8..f15fc7f 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/owner/ResourceOwnerGrantHandler.java
@@ -55,7 +55,7 @@ public class ResourceOwnerGrantHandler extends AbstractGrantHandler {
             }
         } catch (OAuthServiceException ex) { 
             throw ex;
-        } catch (Exception ex) { 
+        } catch (RuntimeException ex) { 
             throw new OAuthServiceException(OAuthConstants.INVALID_GRANT, ex);
         }
         return doCreateAccessToken(client,