-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It is possible to create, serialize and deserialize a Collection that includes DnaComponents that have SequenceAnnotations whose subComponents refer back to the original DnaComponent.
The serializer doesn't complain or fail.
The problem is that circular references do not make sense for DNA. This could cause problems. E.g. you can imagine a web service crashing when someone gives it an SBOL file that has been crafted to contain circular references. Even though the deserializer wouldn't fail, the code interpreting the resulting data structure may not realize that it has to watch out for circular references and loop/recurse forever.
I'm adding this issue to libSBOLcore as well, since it should be a restriction in the data model which the XML serializer enforces.