kali834x opened a new pull request, #1148: URL: https://github.com/apache/poi/pull/1148
This pull request fixes a metadata preservation issue in ZipArchiveFakeEntry when ZIP files are read from an InputStream using ZipInputStreamZipEntrySource. Previously, the constructor used super(entry.getName()), which created a new entry containing only the name and discarded metadata such as size, modification time, compression method, and extra fields. This could result in missing or invalid metadata when reading OOXML packages from streams. The constructor now uses super(entry) and preserves the entry comment, ensuring that all available metadata is retained. The tests were updated to separately verify metadata preservation for stream-based and file-based ZIP entry sources, accounting for the fact that entry comments are only available when reading through ZipFile. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
