You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sanitizing misidentifies diamond-shaped references as cycles #367
Removing a record from visited when its traversal returns matches path-local cycle detection, but the key may need collection identity as well as the primary-key value. Otherwise, unrelated records in different collections that share an ID could still be mistaken for the same node. Tests for a true cycle, a diamond reference, and equal IDs across two collections would define the intended traversal semantics.
Thanks for reporting this @SkelatorIndy. Honestly, I'd very much like to remove sanitization entirely (see #342). I hope I'll find a way around it eventually. But yeah, if this fails on the latest release, I say we add a test for it and fix it, especially if it seems like a trivial fix.
Activity
hiSandog commentedon Jul 11, 2026
Removing a record from
visitedwhen its traversal returns matches path-local cycle detection, but the key may need collection identity as well as the primary-key value. Otherwise, unrelated records in different collections that share an ID could still be mistaken for the same node. Tests for a true cycle, a diamond reference, and equal IDs across two collections would define the intended traversal semantics.kettanaito commentedon Jul 13, 2026
Thanks for reporting this @SkelatorIndy. Honestly, I'd very much like to remove sanitization entirely (see #342). I hope I'll find a way around it eventually. But yeah, if this fails on the latest release, I say we add a test for it and fix it, especially if it seems like a trivial fix.