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:10:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes b38cfb6fc -> 7bdfd5970


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

Branch: refs/heads/3.0.x-fixes
Commit: 7bdfd597052d7c2953339a0fe801aa75196ab6ef
Parents: b38cfb6
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:09:43 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/7bdfd597/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