Bug 125010 - Bundled templates are not ODF valid: mimetype must not be compressed
Summary: Bundled templates are not ODF valid: mimetype must not be compressed
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.2.0.1 rc
Hardware: All All
: medium normal
Assignee: Laurent Balland
URL:
Whiteboard: target:6.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 12:24 UTC by Laurent Balland
Modified: 2019-05-14 18:43 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Balland 2019-04-28 12:24:18 UTC
Description: Writer and Impress bundled Templates are now built from XML code. See https://gerrit.libreoffice.org/58787/ for Writer and https://gerrit.libreoffice.org/47221/ for Impress. However these templates do not pass ODF validation test https://odfvalidator.org/ as mimetype files are compressed with other files

Steps to reproduce:
1. Go to https://odfvalidator.org/
2. Select ODF Version = OASIS ODF 1.2 (extended conforming)
3. Browse to instdir/share/template/common/offimisc/Businesscard-with-logo.ott for instance
4. Click Validate

Expected result:
The green message "The document is extended conformant ODF1.2!" must appear

Actual result:
Red message: "The document is NOT extended conformant ODF1.2!"
Businesscard-with-logo.ott/mimetype: Error: The file 'mimetype' shall not be compressed in the ODF package 'Businesscard-with-logo.ott'!

Same apply to all Writer and Impress templates.
Comment 1 Commit Notification 2019-05-05 20:24:13 UTC
Laurent BP committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/74ac288132de7046ce25eb4539be6b9a25138399%5E%21

tdf#125010 No compression to mimetype in templates

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2019-05-14 18:42:34 UTC
Laurent BP committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/afb4db718438515a5514b9247f912f970add90c7%5E%21

tdf#125010 No compression to mimetype in all embded files

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.