mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 13:45:30 +00:00
* fix(desktop): reject split ZIP volume metadata
Refs #12137
* refactor(zip): read Zip64 disk fields through BinaryReader
* fix(desktop): validate ZIP extra fields before selection
Refs #12146
* fix(desktop): keep bounded ZIP pairing compatible with Python 3.9
* fix(desktop): retain exact counts in bounded Zip64 views
* fix(desktop): follow the declared Zip64 directory frame
* fix(desktop): recognize empty ZIP state views (#12163)
* fix(desktop): recognize empty ZIP state views
(cherry picked from commit 263b25bd34)
* fix(desktop): reuse empty ZIP admission for wrapped documents
* refactor(zip): share the local-header signature with desktop state
---------
Co-authored-by: wunianze666-netizen <wunianze666@gmail.com>
* test(zip): inherit the portable ZIP count deadline
---------
Co-authored-by: wunianze666-netizen <wunianze666@gmail.com>
1.6 KiB
1.6 KiB
Plan
- Format and reader:
zipdetected by its local file header or an empty classic/Zip64 archive signature; the text, JSON, key file and XML readers shared astextualView, so a file and an entry read alike; a domain module for the entry limits, the entry view and the archive view, and an application reader that walks the verified bytes with zip.js under the options and name decodingZipArtifactReaderuses. - Selectors:
locatePointerinsrc/domain/desktop/viewPointer.ts, used by REA's evaluator and the draft, and_locatein the exported verifier, with the same messages;tolerancein the task schema and both evaluators. - Changes and draft: member keys chosen per array from the candidate
selectors of both versions, a keyed walk for zip views in
compareTrees, and a walk that notes a member added or removed whole once for the draft's archive suggestions. - Exported module:
_zipand_entry_viewbeside_view, withzipfile,zlibandhashlibimported at the top. - Docs and tests: real FreeCAD 0.21 and 1.0
Document.xmlfiles zipped into.FCStdarchives and checked by both evaluators, an.odtbuilt in the test, archives crafted for each limit, and the shared check cases run through both evaluators. - Namespaced XML: the exported module reads XML with
expatrather thanElementTree, one pass with namespace processing to check the document and one without to build the view as REA's DOM does, names and text nodes alike; the export's namespace refusal and the draft's namespace gate go. Parity tests read real Inkscape and LibreOffice Writer saves.