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 2015/11/17 17:11:42 UTC
[1/2] cxf git commit: Skipping reading the form body if it is empty
Repository: cxf
Updated Branches:
refs/heads/master 08f2cfcf8 -> e492a2227
Skipping reading the form body if it is empty
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2653e886
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2653e886
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2653e886
Branch: refs/heads/master
Commit: 2653e88603fcc690dad279f362a9bf4daf7706bd
Parents: 7f4b3b1
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Nov 17 16:11:00 2015 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Nov 17 16:11:00 2015 +0000
----------------------------------------------------------------------
.../jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/2653e886/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
index 666fa28..ec5d0e0 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
@@ -126,6 +126,9 @@ public final class FormUtils {
String postBody,
String enc,
boolean decode) {
+ if (StringUtils.isEmpty(postBody)) {
+ return;
+ }
List<String> parts = Arrays.asList(StringUtils.split(postBody, "&"));
checkNumberOfParts(m, parts.size());
for (String part : parts) {
[2/2] cxf git commit: Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/cxf
Posted by se...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cxf
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e492a222
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e492a222
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e492a222
Branch: refs/heads/master
Commit: e492a22278ef9bbb1c6bb3ea34cfae45fe6c0de7
Parents: 2653e88 08f2cfc
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Nov 17 16:11:29 2015 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Nov 17 16:11:29 2015 +0000
----------------------------------------------------------------------
.../ws/security/trust/AbstractSTSClient.java | 4 +-
.../cxf/sts/operation/TokenIssueOperation.java | 10 +-
.../apache/cxf/sts/request/ReceivedToken.java | 5 -
.../cxf/sts/token/realm/JWTRealmCodec.java | 36 +++
.../token/validator/jwt/JWTTokenValidator.java | 56 ++--
.../sts/operation/IssueJWTClaimsUnitTest.java | 61 ++--
.../operation/IssueJWTOnbehalfofUnitTest.java | 46 +--
.../sts/operation/IssueJWTRealmUnitTest.java | 63 +++--
.../cxf/sts/operation/IssueJWTUnitTest.java | 16 +-
.../validator/JWTTokenValidatorRealmTest.java | 280 +++++++++++++++++++
.../token/validator/JWTTokenValidatorTest.java | 23 +-
.../apache/cxf/systest/sts/jwt/JWTUnitTest.java | 41 ++-
.../cxf/systest/sts/deployment/cxf-sts.xml | 3 +
13 files changed, 514 insertions(+), 130 deletions(-)
----------------------------------------------------------------------