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:11:13 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes b8e305d75 -> c1ca8aec0


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/c1ca8aec
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c1ca8aec
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c1ca8aec

Branch: refs/heads/2.7.x-fixes
Commit: c1ca8aec02618e8f1baa62ecc97566c1130e21e7
Parents: b8e305d
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:10:53 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/c1ca8aec/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