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 2018/01/17 15:59:50 UTC
[Bug 62010] New: Attempting to password protect excel file without
writing to disk, getting Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=62010
Bug ID: 62010
Summary: Attempting to password protect excel file without
writing to disk, getting Rule M2.4 exception
Product: POI
Version: 3.17-FINAL
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: jacob.bigelow@ibx.com
Target Milestone: ---
Created attachment 35682
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35682&action=edit
Class to read template excel sheet, modify and encrypt it and return encypted
excel sheet as byte array.
Trying to encrypt excel workbook with password and send byte array to an
emailer class that mails the file. Cannot figure out how to do this without
writing a file to some location.
While attempting to work around saving a file somewhere I encountered this
error:
Exception in thread "main" java.lang.Exception:
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4
exception : this error should NEVER happen! If you can provide the triggering
file, then please raise a bug at
https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file
that triggers it, thanks!
at excelTesting.ExcelEncryption.doReport(ExcelEncryption.java:308)
at excelTesting.ExcelEncryption.main(ExcelEncryption.java:317)
Attached is the class that is getting the error.
--
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 62010] Attempting to password protect excel file without
writing to disk, getting Rule M2.4 exception
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62010
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |64861
Referenced Bugs:
https://bz.apache.org/bugzilla/show_bug.cgi?id=64861
[Bug 64861] Error should never happen
--
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 62010] Attempting to password protect excel file without
writing to disk, getting Rule M2.4 exception
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62010
Jacob <ja...@ibx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jacob.bigelow@ibx.com
OS| |All
--
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 62010] Attempting to password protect excel file without
writing to disk, getting Rule M2.4 exception
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62010
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
3 years later it's probably too late, but you need to close the stream which
you've got from "OutputStream os = enc.getDataStream(fs)"
--
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