archive module doesnt create directory entries
Bug #1039576 reported by
Dennis Knochenwefel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Luis Rodriguez Gonzalez |
Bug Description
For example:
archive:create(
("
( content:metainf() ),
<a:options>
</a:options>
)
should create *2* entries automatically: one directory entry for META-INF and one file entry for META-INF/
Currently, the archive module only creates one file entry for META-INF/
As result the created zip archive is corrupt and cannot be read by some archive consumers (e.g. epub readers).
Additionally, as Luis pointed out, empty directories cannot be created automatically. Therefore, users should also be able to create directories manually.
Related branches
lp:~zorba-coders/zorba/1039576
- Matthias Brantner: Approve
- Juan Zacarias: Approve
-
Diff: 771 lines (+289/-119)28 files modifiedsrc/archive.xsd (+8/-0)
src/archive_module.xq (+26/-10)
src/archive_module.xq.src/archive_module.cpp (+131/-106)
src/archive_module.xq.src/archive_module.h (+15/-0)
test/ExpQueryResults/dir_01.xml.res (+2/-0)
test/ExpQueryResults/dir_02.xml.res (+2/-0)
test/ExpQueryResults/dir_03.xml.res (+2/-0)
test/ExpQueryResults/dir_04.xml.res (+2/-0)
test/ExpQueryResults/entries_01.xml.res (+1/-1)
test/ExpQueryResults/entries_02.xml.res (+1/-1)
test/ExpQueryResults/entries_03.xml.res (+1/-1)
test/ExpQueryResults/options_02.xml.res (+2/-0)
test/ExpQueryResults/update_02.xml.res (+2/-0)
test/ExpQueryResults/update_03.xml.res (+1/-0)
test/Queries/dir_01.xq (+10/-0)
test/Queries/dir_02.xq (+11/-0)
test/Queries/dir_03.xq (+13/-0)
test/Queries/dir_04.xq (+13/-0)
test/Queries/entries_03.spec (+1/-0)
test/Queries/options_02.spec (+1/-0)
test/Queries/options_02.xq (+5/-0)
test/Queries/options_03.spec (+1/-0)
test/Queries/options_03.xq (+5/-0)
test/Queries/update_02.xq (+12/-0)
test/Queries/update_03.spec (+1/-0)
test/Queries/update_03.xq (+12/-0)
test/Queries/update_04.spec (+1/-0)
test/Queries/update_04.xq (+7/-0)
Changed in zorba: | |
milestone: | 2.7 → 2.8 |
Changed in zorba: | |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
To post a comment you must log in.