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 2014/07/17 16:46:25 UTC
git commit: [CXF-5388] Using IOException to indicate that the
sequence is malformed in OAuthJSONProvider
Repository: cxf
Updated Branches:
refs/heads/master 09faa0fca -> 4daba03ba
[CXF-5388] 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/4daba03b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4daba03b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4daba03b
Branch: refs/heads/master
Commit: 4daba03ba3ad0f97032c1cebe5547ce6799decdc
Parents: 09faa0f
Author: Sergey Beryozkin <sb...@talend.com>
Authored: Thu Jul 17 15:46:02 2014 +0100
Committer: Sergey Beryozkin <sb...@talend.com>
Committed: Thu Jul 17 15:46:02 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/4daba03b/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 dacf631..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
@@ -28,7 +28,6 @@ import java.util.LinkedHashMap;
import java.util.Map;
import javax.ws.rs.Consumes;
-import javax.ws.rs.ProcessingException;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
@@ -158,7 +157,7 @@ public class OAuthJSONProvider implements MessageBodyWriter<Object>,
return Collections.emptyMap();
}
if (!str.startsWith("{") || !str.endsWith("}")) {
- throw new ProcessingException("JSON Sequence is broken");
+ throw new IOException("JSON Sequence is broken");
}
Map<String, String> map = new LinkedHashMap<String, String>();