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/06/26 01:50:24 UTC

[Bug 61182] apache POI creates invalid signature for stream xslx file

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

--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
Created attachment 35075
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35075&action=edit
Patch for XML Signatures / Unix linebreaks

I'll apply the patch after the 3.17-beta1 is out.

Originally I've adapted/developed the XML signature code under a Win7 box, but
now couldn't sign any documents anymore in an Ubuntu environment.
The reason was the indenting setting in StreamHelper.

For the actual bug entry, look at TestSignatureInfo on how to add a signature
in-memory. I haven't changed the OPC code, which adds relations on the fly when
saving, but rather ask the user to save the unsigned file first to a byte
buffer before using OPCPackage to reload/sign/save it.

-- 
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