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 2019/04/13 09:55:34 UTC

[Bug 63344] New: Support POIFSFileSystem that uses a temp file for backing - to support encryption of large files

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

            Bug ID: 63344
           Summary: Support POIFSFileSystem that uses a temp file for
                    backing - to support encryption of large files
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
          Assignee: dev@poi.apache.org
          Reporter: fanningpj@yahoo.com
  Target Milestone: ---

https://stackoverflow.com/questions/55658495/apache-poi-encrypting-xlsx-file-greater-than-2gb-fails

POIFSFileSystem is needed for agile encryption. By default, POIFSFileSystem
uses in-memory data source.

The support for file-backed data source assumes the file is OLE encoded. This
is a problem if you want to take an OOXML file and encrypt it.

My suggestion is that we create a TempFilePOIFSFileSystem that uses an
initially empty temp file as the data source backing.

-- 
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 63344] Support POIFSFileSystem that uses a temp file for backing - to support encryption of large files

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

-- 
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 63344] Support POIFSFileSystem that uses a temp file for backing - to support encryption of large files

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

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CLOSED

--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
this was done

-- 
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 63344] Support POIFSFileSystem that uses a temp file for backing - to support encryption of large files

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

--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
https://github.com/apache/poi/commit/e8b5f8b3af7532e09e60c258afbb706d0df4b793

I'm happy to remove this if anyone thinks there is a better way to do 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 63344] Support POIFSFileSystem that uses a temp file for backing - to support encryption of large files

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

--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
But to resolve the problem mentioned in the stack overflow issue, we also need
to make sure to use a blocksize of 4096 bytes and check other issues, e.g. to
handle large byte arrays differently.
I'm currently on the road but afaik there was already some temporary file used
in encrypting agile, because the written amount of bytes has to be prefixed.

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