[ruby-core:66215] [ruby-trunk - Bug #10496] [Open] Yaml: Serialization of cross-referrenced objects with psych

2 views
Skip to first unread message

ivan.n...@gmail.com

unread,
Nov 11, 2014, 5:30:20 PM11/11/14
to ruby...@ruby-lang.org
Issue #10496 has been reported by Ivan Neverov.

----------------------------------------
Bug #10496: Yaml: Serialization of cross-referrenced objects with psych
https://bugs.ruby-lang.org/issues/10496

* Author: Ivan Neverov
* Status: Open
* Priority: Normal
* Assignee: ruby-core
* Category: ext
* Target version:
* ruby -v: 2.1.3p242, 1.9.3p550
* Backport:
----------------------------------------
I'm trying to run next code that serialize object B that has instance variable of A initialized with this B (cross referenced). After deserialization I'm getting 2 B objects instead of 1

https://gist.github.com/ineverov/3ce3ea21d970996b673e

During investigation of source code of psych I found that we don't register objects that use encode_with methods
Here: https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/visitors/yaml_tree.rb#L530





--
https://bugs.ruby-lang.org/

due...@it.aoyama.ac.jp

unread,
Dec 31, 2014, 1:28:14 AM12/31/14
to ruby...@ruby-lang.org
Issue #10496 has been updated by Martin Dürst.

Assignee changed from ruby-core to Aaron Patterson

----------------------------------------
Bug #10496: Yaml: Serialization of cross-referrenced objects with psych
https://bugs.ruby-lang.org/issues/10496#change-50718

* Author: Ivan Neverov
* Status: Open
* Priority: Normal
* Assignee: Aaron Patterson

s.wa...@gmail.com

unread,
Feb 17, 2015, 9:32:13 AM2/17/15
to ruby...@ruby-lang.org
Issue #10496 has been updated by _ wanabe.

Backport set to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN

----------------------------------------
Bug #10496: Yaml: Serialization of cross-referrenced objects with psych
https://bugs.ruby-lang.org/issues/10496#change-51531

* Author: Ivan Neverov
* Status: Closed
* Priority: Normal
* Assignee: Aaron Patterson
* ruby -v: 2.1.3p242, 1.9.3p550
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
Reply all
Reply to author
Forward
0 new messages