Closed glassfishrobot closed 14 years ago
Reported by eric_ekka@java.net
ashutoshshahi@java.net said: This issue is no longer seen, so marking it as fixed.
m_potociar@java.net said: Updating target milestone to 1.0
Was assigned to ashutoshshahi@java.net
This issue was imported from java.net JIRA WSIT-36
Marked as fixed on Friday, March 19th 2010, 12:37:47 am
Test configuration: wsit sources checked out and built from wsit.dev.java.net [27 july 2006] and installed onto glassfish
Scenario: SymmetricBinding with protection token:x509tokenV3token11. Attempt to encrypt request and response message body.There is no SignedParts assertion.
However, when a SignedParts assertion is put in the wsdl,the test passes.
The wsdl for the test case is at the end of the description.
The test case fails at runtime with the following : Jul 28, 2006 11:32:13 AM com.sun.xml.wss.impl.dsig.WSSPolicyConsumerImpl generateReferenceList WARNING: No Signed Parts found in the Message com.sun.xml.wss.XWSSecurityException: java.lang.IllegalArgumentException: list of references must contain at least one entry at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:584) at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:444) at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:84) at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:243) at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:177) at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:139) at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.secureOutboundMessage(SecurityPipeBase.java:311) at com.sun.xml.wss.jaxws.impl.SecurityClientPipe.process(SecurityClientPipe.java:216) at com.sun.xml.ws.client.Stub.process(Stub.java:121) at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:122) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:238) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:212) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:105) at $Proxy35.ping(Unknown Source) at simple.client.PingServiceClients5.main(Unknown Source) Caused by: java.lang.IllegalArgumentException: list of references must contain at least one entry at org.jcp.xml.dsig.internal.dom.DOMSignedInfo.(DOMSignedInfo.java:71)
at org.jcp.xml.dsig.internal.dom.DOMSignedInfo.(DOMSignedInfo.java:100)
at
org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newSignedInfo(DOMXMLSignatureFactory.java:85)
at
com.sun.xml.wss.impl.dsig.WSSPolicyConsumerImpl.generateSignedInfo(WSSPolicyConsumerImpl.java:487)
at
com.sun.xml.wss.impl.dsig.WSSPolicyConsumerImpl.constructSignedInfo(WSSPolicyConsumerImpl.java:203)
at com.sun.xml.wss.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:554)
... 14 more
WSDL for the test case: <?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="http://xmlsoap.org/Ping" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlsoap.org/Ping" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ci="http://schemas.microsoft.com/ws/2005/01/WSDL/Extensions/ContractInheritance" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">