You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Fred Dushin (JIRA)" <ji...@apache.org> on 2008/04/14 21:57:05 UTC
[jira] Commented: (WSS-96) Error when making a signature when
containing a WSSecTimestamp
[ https://issues.apache.org/jira/browse/WSS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588750#action_12588750 ]
Fred Dushin commented on WSS-96:
--------------------------------
Committed Colm's test case patch.
Thanks, Colm!
> 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: Ruchith Udayanga Fernando
> Priority: Critical
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org