Bug 1103847
Summary: | [GSS] (6.3.x) CXF-5665, CXF-5841 - CXF duplicates PolicyReferences in generated WSDL under certain circumstances | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Kyle Lape <klape> |
Component: | Web Services | Assignee: | baranowb <bbaranow> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Rostislav Svoboda <rsvoboda> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.0 | CC: | asoldano, bbaranow, bmaxwell, istudens, jawilson, jbliznak, jkudrnac, myarboro, vtunka |
Target Milestone: | CR1 | Keywords: | Triaged |
Target Release: | EAP 6.3.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
A bug in the CXF component shipped with JBoss EAP 6 causes `PolicyReferences` to be duplicated when using Java First WS-Policy Annotations (such as @Policies). The resulting WSDL generates multiple 'PolicyReference' elements when there is no separate Java interface.
This issue is expected to be resolved in a future release of the product.
|
Story Points: | --- |
Clone Of: | 1083770 | Environment: | |
Last Closed: | 2019-08-19 12:41:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1083770 | ||
Bug Blocks: | 1087653, 1115216, 1132166, 1144103 |
Description
Kyle Lape
2014-06-02 17:55:32 UTC
Fix is in: http://git.app.eng.bos.redhat.com/git/apache/cxf.git/commit/?h=cxf-2.7.11-redhat&id=eb5ac69120bc7799997740ff6817864039b55518 , if CXF is bumped to 2.7.11-redhatX this issue can be closed. I still see reported issue in 6.2.4.CP.CR1: Defining webservice with no interface like this: @WebService( serviceName = "HelloWorldServiceNoInterface", portName = "HelloWorld1", name = "HelloWorld1", targetNamespace = "http://www.jboss.org/jbossas/quickstarts/wshelloworld/HelloWorld1" ) @Policy(uri = "ws-policy/x509SecurityPolicy.xml", placement = Policy.Placement.BINDING) public class HelloWorldServiceNoInterface { @WebMethod @Policies({ @Policy(uri = "ws-policy/inputPolicy.xml", placement = Policy.Placement.PORT_TYPE_OPERATION_INPUT), @Policy(uri = "ws-policy/outputPolicy.xml", placement = Policy.Placement.PORT_TYPE_OPERATION_OUTPUT) }) public String sayHello() { return "Hello World!"; } } still results in multiple PolicyReference elements in wsdl: <wsdl:portType name="HelloWorld1"> <wsdl:operation name="sayHello2"> <wsdl:input message="tns:sayHello2" name="sayHello2"> <wsp:PolicyReference URI="#Input_Security_Policy"/> <wsp:PolicyReference URI="#Input_Security_Policy"/> </wsdl:input> <wsdl:output message="tns:sayHello2Response" name="sayHello2Response"> <wsp:PolicyReference URI="#Output_Security_Policy"/> <wsp:PolicyReference URI="#Output_Security_Policy"/> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloWorldServiceNoInterfaceSoapBinding" type="tns:HelloWorld1"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsp:PolicyReference URI="#X509SecurityPolicy"/> <wsp:PolicyReference URI="#X509SecurityPolicy"/> <wsdl:operation name="sayHello2"> <soap:operation soapAction="" style="document"/> <wsdl:input name="sayHello2"> <soap:body use="literal"/> </wsdl:input> <wsdl:output name="sayHello2Response"> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> Converted release note to Known Issue as failed QA Shifting to 6.3.1 - this require new spin of CXF (2.7.12 iirc) Verified on 6.3.2.CP.CR1 |