DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37456

           Summary: Signing throws an exception if custom resource resolver
                    is registered
           Product: Security
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Signature
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


This seems to be a regression in 1.3.
I registered my custom ResourceResolverSpi implementation using 
ResourceResolver.registerAtStart method.
Signing now raises a class cast exception, trace follows:
---------------------------------------------------------
                        java.lang.ClassCastException
        at org.apache.xml.security.utils.resolver.ResourceResolver.getInstance
(ResourceResolver.java:104)
        at org.apache.xml.security.utils.resolver.ResourceResolver.getInstance
(ResourceResolver.java:160)
        at 
org.apache.xml.security.signature.Reference.getContentsBeforeTransformation
(Reference.java:378)
        at 
org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms
(Reference.java:602)
        at org.apache.xml.security.signature.Reference.calculateDigest
(Reference.java:688)
        at org.apache.xml.security.signature.Reference.generateDigestValue
(Reference.java:354)
        at org.apache.xml.security.signature.Manifest.generateDigestValues
(Manifest.java:183)
        at org.apache.xml.security.signature.XMLSignature.sign
(XMLSignature.java:498)
---------------------------------------------------------

At run-time the resolver instance is of type ResourceResolverSpi but attempt 
is being made to cast it to ResourceResolverSpi.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to