Bug 39678 - When Saving as ODF 1.0/1.1 LO 3.4 still includes ODF 1.2-only attributes
Summary: When Saving as ODF 1.0/1.1 LO 3.4 still includes ODF 1.2-only attributes
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.2 release
Hardware: Other All
: medium normal
Assignee: Markus Mohrhard
URL: http://tools.oasis-open.org/version-c...
Whiteboard: target:3.5 target:3.4.3
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 20:51 UTC by orcmid
Modified: 2011-12-23 14:17 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 orcmid 2011-07-29 20:51:06 UTC
When LibreOffice Calc Tools | Protection is used to protect a sheet and the document, and the document is save as an ODF 1.0/1.1 document according to the Tools | Options Load/Save settings, the table:protection-key is correctly derived using SHA1.  However, the ODF 1.2-only attribute table:protection-key-digest-algorithm is provided with information that is defined only for ODF 1.2.

This attribute should not be used in an ODF 1.1 document.

At <http://tools.oasis-open.org/version-control/svn/oic/TestSuite/trunk/odf12/ProtectionKeyResilience/>, the files
ProtectionKeyResilience-05-ODF1.2-1.1-offBase.ods and -06-ODF1.2-1.1-offBase.ods
demonstrate this defect.  The abridged and annotated content.xml file,
ProtectionKeyResilience-06-ODF1.2-1.1-offBase-content.xml demonstrates the 
defect in the second of those two files.
Comment 1 Markus Mohrhard 2011-08-03 11:36:05 UTC
Let me have a look at it. Should be a quite easy fix.
Comment 2 Markus Mohrhard 2011-08-05 13:02:37 UTC
sent a possible patch to the ML