Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 60755 invoked from network); 31 Jan 2008 12:07:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2008 12:07:58 -0000 Received: (qmail 79462 invoked by uid 500); 31 Jan 2008 12:07:49 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 79163 invoked by uid 500); 31 Jan 2008 12:07:49 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 79143 invoked by uid 99); 31 Jan 2008 12:07:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 04:07:49 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 12:07:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDF3D71423E for ; Thu, 31 Jan 2008 04:07:34 -0800 (PST) Message-ID: <31434029.1201781254840.JavaMail.jira@brutus> Date: Thu, 31 Jan 2008 04:07:34 -0800 (PST) From: "Sergey Beryozkin (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-1409) Endpoint polices referenced from WSPolicyFeature can not be applied if EndpointPolicy already exists In-Reply-To: <17807011.1201618356603.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin updated CXF-1409: ---------------------------------- Attachment: cxf-patch-1409-v2.patch The previous attachment had some left-overs from other patches. Summary : 1. PolicyEngine has separate maps now for keeping client and server endpoint policies as the assumption that they're the same (in midtier) is not safe 2. EndpointPolicy has an explicit updatePolicy methods for various providers be able to contribute to existing policy (dynamically) 3. WSPolicyFeature does not add Policy instances as extensors to EndpointInfo which are duplicated anyway in the EndpointPolicy 4. Some initial workaround around Neethi'lack for proper normalization support in EndpointPolicy > Endpoint polices referenced from WSPolicyFeature can not be applied if EndpointPolicy already exists > ---------------------------------------------------------------------------------------------------- > > Key: CXF-1409 > URL: https://issues.apache.org/jira/browse/CXF-1409 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.1 > Reporter: Sergey Beryozkin > Fix For: 2.1 > > Attachments: cxf-patch-1409-v2.patch > > > If a jaxws:endpoint is using WSPolicyFeature to refer to WS-Policy expressions and a corresponding EndpointPolicy already exists then these polices will have no effect. > This can happen if a policy engine has been explicitly enabled or if at least 2 jaxws:endpoints are using WSPolicyFeature. > In the former case, AbstractHttpDestination will cause a somewhat premature EndpointPolicy creation, while in the latter case > WSPolicyFeature will explicitly enable policy engine which in turn cause an AbstractHttpDestination for the second endpoint to (early) create EndpointPolicy. > As a result, after WSPolicyFeature adds Policy extensors to EndpointInfo, these extensors are never checked again to sync up them with already existing EndpointPolicy. > While the way AbstractHttpDestination creates EndpointPolicy needs to be reviewed, the actual problem is that it's not possible to update EndpointPolicy after it's been created -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.