Closed meulemans closed 3 years ago
the use of defusedxml breaks this line, the SubElement call creates the following error: exception filtering CoT Argument '_parent' has incorrect type (expected lxml.etree._Element, got xml.etree.ElementTree.Element) https://github.com/FreeTAKTeam/FreeTakServer/blob/8fe8f3231fd1373de9c5e7ff4176058d4400e2b0/FreeTAKServer/controllers/SpecificCoTControllers/SendOtherController.py#L43
using from lxml import etree instead of from defusedxml import ElementTree as etree fixes the issue.
could you send an example of CoT which would fail?
fixed and tested with your CoT
the use of defusedxml breaks this line, the SubElement call creates the following error: exception filtering CoT Argument '_parent' has incorrect type (expected lxml.etree._Element, got xml.etree.ElementTree.Element) https://github.com/FreeTAKTeam/FreeTakServer/blob/8fe8f3231fd1373de9c5e7ff4176058d4400e2b0/FreeTAKServer/controllers/SpecificCoTControllers/SendOtherController.py#L43
using from lxml import etree instead of from defusedxml import ElementTree as etree fixes the issue.