Bug 39678

Summary: When Saving as ODF 1.0/1.1 LO 3.4 still includes ODF 1.2-only attributes
Product: LibreOffice Reporter: orcmid <dennis.hamilton>
Component: CalcAssignee: Markus Mohrhard <markus.mohrhard>
Status: RESOLVED FIXED    
Severity: normal CC: dennis.hamilton
Priority: medium    
Version: 3.4.2 release   
Hardware: Other   
OS: All   
URL: http://tools.oasis-open.org/version-control/svn/oic/TestSuite/trunk/odf12/ProtectionKeyResilience/
Whiteboard: target:3.5 target:3.4.3
Crash report or crash signature: Regression By:

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