cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5884] Using IOException to indicate that the sequence is malformed in OAuthJSONProvider
Date Thu, 17 Jul 2014 15:18:44 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 0f18415b8 -> ffb30d514


[CXF-5884] Using IOException to indicate that the sequence is malformed in OAuthJSONProvider


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

Branch: refs/heads/2.7.x-fixes
Commit: ffb30d5140171c22b3dbb00a1ea032a0076d4fa1
Parents: 0f18415
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jul 17 15:46:02 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jul 17 16:18:24 2014 +0100

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ffb30d51/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java
index 02fa83e..518e978 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/OAuthJSONProvider.java
@@ -30,7 +30,6 @@ import java.util.Map;
 import javax.ws.rs.Consumes;
 import javax.ws.rs.Produces;
 import javax.ws.rs.WebApplicationException;
-import javax.ws.rs.client.ClientException;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.MultivaluedMap;
 import javax.ws.rs.ext.MessageBodyReader;
@@ -158,7 +157,7 @@ public class OAuthJSONProvider implements MessageBodyWriter<Object>,
             return Collections.emptyMap();
         }
         if (!str.startsWith("{") || !str.endsWith("}")) {
-            throw new ClientException("JSON Sequence is broken");
+            throw new IOException("JSON Sequence is broken");
         }
         Map<String, String> map = new LinkedHashMap<String, String>();
         


Mime
View raw message