Review Request 122682: Respect KZip::extraField setting also when writing central header entries

Friedrich W. H. Kossebau kossebau at kde.org
Mon Feb 23 01:11:44 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122682/
-----------------------------------------------------------

Review request for KDE Frameworks and David Faure.


Repository: karchive


Description
-------

Currently KZip when writing the central headers ignores the setting `extraField` and writes the extra fields in any case.

Not perfect. At least confuses when debugging Zip files to see that extra data present, even if explicitely not asked for. There is no hint why that is done, both in the code or could I find anything in Goo^Wthe usual search indexes services, so I assume it was just a mistake.

No unit tests this time, as I had no idea how to check that the extraFields are not written without doing errorprone seeking in the resulting file. So I just rely on the current unit tests not failing and having read the code changes 4x.


Diffs
-----

  src/kzip.cpp 73121f3 

Diff: https://git.reviewboard.kde.org/r/122682/diff/


Testing
-------


Thanks,

Friedrich W. H. Kossebau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150223/144cceec/attachment.html>


More information about the Kde-frameworks-devel mailing list