[ 
https://issues.apache.org/jira/browse/WSS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh closed WSS-96.
----------------------------------

    
> Error when making a signature when containing a WSSecTimestamp
> --------------------------------------------------------------
>
>                 Key: WSS-96
>                 URL: https://issues.apache.org/jira/browse/WSS-96
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: WSS4J 1.5.X
>            Reporter: Candido Rodriguez
>            Assignee: Fred Dushin
>            Priority: Critical
>             Fix For: 1.5.4
>
>         Attachments: TestWSSecurityNew11.java, wss4j_wss96.patch
>
>
> When we add a timestamp section and we add it to a WSEncryptionPart object, 
> so we specify that we can create the XML signature including that timestamp, 
> the xml-sec launch the following exception:
> org.apache.ws.security.WSSecurityException: Signature creation failed; nested 
> exception is: 
>       org.apache.xml.security.signature.XMLSignatureException: Id not found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.utils.resolver.ResourceResolverException: Id not found
>       at 
> org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:663)
>       at 
> org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:728)
>       at 
> wssec.TestWSSecurityNew11.testX509SignatureDirectSTR(TestWSSecurityNew11.java:168)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at junit.framework.TestCase.runTest(TestCase.java:154)
>       at junit.framework.TestCase.runBare(TestCase.java:127)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>       at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: org.apache.xml.security.signature.XMLSignatureException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.signature.ReferenceNotInitializedException: Id not 
> found
> Original Exception was 
> org.apache.xml.security.utils.resolver.ResourceResolverException: Id not found
>       at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
>       at 
> org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:659)
>       ... 20 more
> Basically, I'm executing the next piece of code:
>         Vector parts = new Vector();
>         WSSecTimestamp timestamp = new WSSecTimestamp();
>         timestamp.setTimeToLive(600);
>               timestamp.prepare(doc);
>               parts.add(new WSEncryptionPart(timestamp.getId()));
> Anyway, I'm attaching a JUnit test file, which is a modified version of 
> TestWSSecurityNew11.java file, included in WSS4J 1.5.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to