cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Minor fix to OAuthJSONProvider
Date Fri, 10 Oct 2014 11:02:39 GMT
Repository: cxf
Updated Branches:
  refs/heads/master d1767a6b0 -> 3ba703c34


Minor fix to OAuthJSONProvider


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

Branch: refs/heads/master
Commit: 3ba703c34eb39e3b2bc2028cd4c71ac80f9ed892
Parents: d1767a6
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Fri Oct 10 12:02:21 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Oct 10 12:02:21 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/3ba703c3/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 518e978..07db018 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
@@ -177,7 +177,7 @@ public class OAuthJSONProvider implements MessageBodyWriter<Object>,
             if (value.startsWith("\"") && value.endsWith("\"")) {
                 value = value.substring(1, value.length() - 1);
             }
-            map.put(key, value);
+            map.put(key, value.trim());
         }
         
         return map;


Mime
View raw message