Bug 34916 - ODF saved by LibreOffice does not validate against latest ODF 1.2 RNG: manifest:version attribute misplaced
Summary: ODF saved by LibreOffice does not validate against latest ODF 1.2 RNG: manife...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.3.1 release
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 04:35 UTC by Jos van den Oever
Modified: 2011-03-02 06:53 UTC (History)
0 users

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 Jos van den Oever 2011-03-02 04:35:18 UTC
In ODF files created by LibreOffice 3.3.1, the file META-INF/manifest.xml is invalid. The attribute manifest:version attribute should be in the manifest:manifest element, but is now in the first manifest:file-entry element.

For this report the latest ODF 1.2 RNG was used:
http://docs.oasis-open.org/office/v1.2/csprd03/OpenDocument-v1.2-csprd03-manifest-schema.rng

    > java -jar jing.jar -i OpenDocument-v1.2-csprd03-manifest-schema.rng META-INF/manifest.xml 
    META-INF/manifest.xml:2:88: error: required attributes missing

The XML in META-INF/manifest.xml starts with:
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
 <manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.text" manifest:version="1.2" manifest:full-path="/"/>

But should be:

<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
 <manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.text" manifest:full-path="/"/>
Comment 1 Cédric Bosdonnat 2011-03-02 06:53:32 UTC
Fixed in master branch by this commit:

http://cgit.freedesktop.org/libreoffice/components/commit/?id=1a5613cab61da0564053586e796402c3bd66fe5e

(Don't pay attention to the bug ID in the commit message... I made a mistake and have seen it too late).