Detect infinite recursion in Entity.to_xml
- Dec 05, 2024
-
-
Florian Spreckelsen authored
-
Florian Spreckelsen authored
-
Florian Spreckelsen authored
-
Florian Spreckelsen authored
-
- Dec 03, 2024
Addresses https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/96 / https://gitlab.com/linkahead/linkahead-pylib/-/issues/73
When calling to_xml on an Entity that refers to itself, to_xml now detects the infinite recursion and stops after the first level of repeated information.
Manual Testing
- Added a visited_entities parameter to save all Entities already treated in to_xml. New calls to to_xml are checked against this to identify potential infinite recursion - Added test - Updated changelog