To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86233
                 Issue #|86233
                 Summary|ODF Digital Signature Issue in reference URI
               Component|xml
                 Version|OOo 2.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|definition
             Assigned to|mba
             Reported by|portylon





------- Additional comments from [EMAIL PROTECTED] Tue Feb 19 12:16:40 +0000 
2008 -------
Hello, I'm using the Apache's API "xmlsec-1.4.0.jar" to do digital signatures on
documents ODF (Open Document Format) with Java. This API offers the possibility
of generating a signature context and a validation context, in addition it allow
to construct the structure of the signature XMLDSIG.

Theoretically, the signatures generated by OpenOffice must be validated by the
API, and the signatures generated by the API must be validated by OpenOffice.

In the practice, the signatures generated by the API are correctly validated by
OpenOffice, until some object is inserted in the document. When we insert some
object (a mathematical equation for example) in the document with OpenOffice,
this stores it in a folder with spaces inside the structure of the ODF.

When we create with the api the element <Reference> of the inserted object, we
need the URI that locates the referenced file, an URI what according to the RFC
2396 can't contain spaces.

In this way, the API throws an exception (IllegalArgumentException), because the
uri is not RFC 2396 compliant due to the space.

Logically, the signatures generated by OpenOffice when there are inserted
objects, it can't be validated by the API for the same reason.

A solution would be to create the structure ODF without spaces or replace the
spaces in the URIs with '%20'. Doing OpenOffice totally compatible with the
Apache's API.

Thank you for your attention.

Regards from Spain.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to