http://bugzilla.novell.com/show_bug.cgi?id=1048526
Bug ID: 1048526
Summary: regression in Psych in ruby2.4
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Ruby
Assignee: ruby-devel@suse.de
Reporter: jreidinger@suse.com
QA Contact: qa-bugs@suse.de
CC: coolo@suse.com, mrueckert@suse.com, mvidner@suse.com
Found By: ---
Blocker: ---
In short what is a problem? SUSEConnect library[1] ( written in ruby ) have
class that is based on OStruct and have parameter in constructor. It is
serialized for testing purpose in yast2-registration[2] to yaml files [3]. And
here comes problem as Psych cannot load such serialized file in ruby 2.4 ( it
work in version 2.2 ).
backtrace of problem:
[ 3s] #
[ 3s]
/usr/lib64/ruby/gems/2.4.0/gems/suse-connect-0.3.2/lib/suse/connect/remote/product.rb:12:in
`initialize'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:373:in `new'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:373:in `revive'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:208:in
`visit_Psych_Nodes_Mapping'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:311:in
`visit_Psych_Nodes_Document'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
[ 3s] /usr/lib64/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
[ 3s] /usr/lib64/ruby/2.4.0/psych/nodes/node.rb:38:in `to_ruby'
[ 3s] /usr/lib64/ruby/2.4.0/psych.rb:253:in `load'
[ 3s] /usr/lib64/ruby/2.4.0/psych.rb:473:in `block in load_file'
[ 3s] /usr/lib64/ruby/2.4.0/psych.rb:472:in `open'
[ 3s] /usr/lib64/ruby/2.4.0/psych.rb:472:in `load_file'
[ 3s]
/home/abuild/rpmbuild/BUILD/yast2-registration-3.2.12/test/spec_helper.rb:39:in
`load_yaml_fixture'
[ 3s]
/home/abuild/rpmbuild/BUILD/yast2-registration-3.2.12/test/registration_update_dialog_test.rb:21:in
`block (3 levels) in '
More details together with workaround is available at [4]
[1] https://github.com/SUSE/connect
[2] https://github.com/yast/yast-registration
[3] https://github.com/yast/yast-registration/tree/master/test/fixtures
[4] https://github.com/yast/yast-registration/pull/326
--
You are receiving this mail because:
You are on the CC list for the bug.