Bug 163806 - validation in unit tests has to consider the actual ODF version
Summary: validation in unit tests has to consider the actual ODF version
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: topicQA
Depends on:
Blocks: ODF-1.4-Support
  Show dependency treegraph
 
Reported: 2024-11-07 18:04 UTC by Regina Henschel
Modified: 2024-12-12 05:37 UTC (History)
3 users (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 Regina Henschel 2024-11-07 18:04:10 UTC
Currently, validation (triggered by save() or saveAndReload) always tests against the latest version even if SetODFDefaultVersion() has set the version to SvtSaveOptions::ODFVER_013, for example.

If the latest version has a mandatory attribute or element that does not exist in the previous version, the validation will fail. That is currently the case for the new attributes draw:handle-position-x, draw:handle-position-y, draw:handle-polar-pole-x and draw:handle-polar-pole-y.

So the request is to extend validation so, that the actual ODF version at time of saving is considered.