Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71505160BF8 for ; Fri, 17 Nov 2017 17:06:59 +0100 (CET) Received: (qmail 20743 invoked by uid 500); 17 Nov 2017 16:06:58 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 20728 invoked by uid 99); 17 Nov 2017 16:06:58 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2017 16:06:58 +0000 From: GitBox To: dev@cxf.apache.org Subject: [GitHub] gonzalad closed pull request #26: IDP maxParameter size is set only if positive Message-ID: <151093481782.9971.13491604294038464847.gitbox@gitbox.apache.org> archived-at: Fri, 17 Nov 2017 16:06:59 -0000 gonzalad closed pull request #26: IDP maxParameter size is set only if positive URL: https://github.com/apache/cxf-fediz/pull/26 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpDAOJPAImpl.java b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpDAOJPAImpl.java index 360755a7..ee5b052a 100644 --- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpDAOJPAImpl.java +++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpDAOJPAImpl.java @@ -333,7 +333,10 @@ public static Idp entity2domain(IdpEntity entity, List expandList) { idp.setRpSingleSignOutCleanupConfirmation(entity.isRpSingleSignOutCleanupConfirmation()); idp.setAutomaticRedirectToRpAfterLogout(entity.isAutomaticRedirectToRpAfterLogout()); idp.setDisableLogoutAddressValidation(entity.isDisableLogoutAddressValidation()); - idp.setMaxParameterSize(entity.getMaxParameterSize()); + + if (entity.getMaxParameterSize() > 0) { + idp.setMaxParameterSize(entity.getMaxParameterSize()); + } if (expandList != null && (expandList.contains("all") || expandList.contains("applications"))) { for (ApplicationEntity item : entity.getApplications()) { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services