FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
674 stars 170 forks source link

defusedxml SubElement error #131

Closed meulemans closed 3 years ago

meulemans commented 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.

naman108 commented 3 years ago

could you send an example of CoT which would fail?

naman108 commented 3 years ago

fixed and tested with your CoT