You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/01/02 14:49:18 UTC

[Bug 60540] New: Cannot resolve element with ID idSignedProperties

https://bz.apache.org/bugzilla/show_bug.cgi?id=60540

            Bug ID: 60540
           Summary: Cannot resolve element with ID idSignedProperties
           Product: POI
           Version: 3.15-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
          Assignee: dev@poi.apache.org
          Reporter: lrvaliente@gmail.com
  Target Milestone: ---

I have an issue with the digital signer. I tried add digital sign to Microsoft
Office Document, I attach the Exception:

javax.xml.crypto.URIReferenceException:
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID idSignedProperties
        at
org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:121)
        at
org.apache.poi.poifs.crypt.dsig.OOXMLURIDereferencer.dereference(OOXMLURIDereferencer.java:85)
        at
org.jcp.xml.dsig.internal.dom.DOMReference.dereference(DOMReference.java:430)
        at
org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:364)
        at
org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(DOMXMLSignature.java:496)
        at
org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:379)
        at
org.apache.poi.poifs.crypt.dsig.SignatureInfo.preSign(SignatureInfo.java:522)
        at
org.apache.poi.poifs.crypt.dsig.SignatureInfo.confirmSignature(SignatureInfo.java:335)
        at
py.gov.senatics.SignerOfficeHelper.signOfficeXML(SignerOfficeHelper.java:221)
        at
py.gov.senatics.SignerOfficeHelper$1.run(SignerOfficeHelper.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:332)
        at
py.gov.senatics.SignerOfficeHelper.pressFirmarOnLinux(SignerOfficeHelper.java:92)
        at py.gov.senatics.SenaticsFirma.signDocument(SenaticsFirma.java:667)
        at py.gov.senatics.SenaticsFirma$2$1.run(SenaticsFirma.java:367)
        at java.lang.Thread.run(Thread.java:745)
Caused by:
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID idSignedProperties
        at
com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverFragment.engineResolveURI(ResolverFragment.java:89)
        at
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver.resolve(ResourceResolver.java:313)
        at
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver.resolve(ResourceResolver.java:298)
        at
org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:114)
        ... 15 more

I copied the code publiced in your site and I think I applied correctly I
attached your site URL:
http://poi.apache.org/encryption.html#Signing+an+office+document, but don't
work for me. Could you tell me about this error?. What could be the fix?

I'm very grateful if you could give me a solution

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 60540] Cannot resolve element with ID idSignedProperties

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60540

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
No more information received, so closing this wontfix for now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 60540] Cannot resolve element with ID idSignedProperties

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60540

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Can you provide a sample file with password that allows to reproduce this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 60540] Cannot resolve element with ID idSignedProperties

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60540

--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
So lets imagine, how we would try to resolve that issue:
1. we need a document
2. we would try to sign it with a self-signed certificate

if in that process, the error happens again, then we could fix it ... otherwise
we would resolve the issue as "works for me"

To debug that error yourself, you could check what "uri" is dereference at
OOXMLURIDereferencer.java:85 ... maybe it's an external uri?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org