Bug 156247 - Add OPC and XML validity check at import/export of OOXML files
Summary: Add OPC and XML validity check at import/export of OOXML files
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyInteresting, easyHack
Depends on:
Blocks: Dev-related
  Show dependency treegraph
 
Reported: 2023-07-12 04:37 UTC by Tomaz Vajngerl
Modified: 2024-01-01 00:16 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 Tomaz Vajngerl 2023-07-12 04:37:05 UTC
When we import or export a OOXML file it would be good to check (in debug mode) the validity of the document's OPC[1] structure (declared relationship actually exists for exmaple) and XML file validity (presence of the XML namespaces declaration that is used in tags for example). 

The goal of this EasyHack is to implement this functionality that checks this and trigger it on import and export of files in debug mode (and maybe when an environment variable is set in non-debug mode). 


[1] https://en.wikipedia.org/wiki/Open_Packaging_Conventions