SynBioDex/libSBOLxml — Issue #20: Circular references
Author: Juul
Created: 2011-10-14 20:35:49+00:00
State: open

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.