Actions
Bug #17866
closedIncompatible changes with Psych 4.0.0
Description
Psych-4.0.0 changes Psych.safe_load
by the default.
https://github.com/ruby/psych/pull/487
It breaks the several code like:
- https://github.com/ruby/ruby/commit/da5b28396397ace84d914cb188055cbeb46b8725
- https://github.com/ruby/ruby/commit/8e91b969df08b7a2eb27a5d6d38733eea42dc7ad
- https://github.com/ruby/ruby/commit/d8fd92f62024d85271a3f1125bc6928409f912e1
- https://github.com/ruby/ruby/commit/dfecc650c3f9bbd8b4fb0eefc1e3da65f151d3a8
- etc...
I and @mame (Yusuke Endoh) investigate them. We found 2 issues.
-
Symbol
is still ignoredPysch.load
. It break many of code like configuration store. https://github.com/ruby/psych/blob/master/lib/psych.rb#L368 passesSymbol
used bypermitted_classes
. But It's not working now. see https://github.com/ruby/psych/issues/490 -
Pysch.load
restrictGem::Specification
orRDoc::Options
by the default. Should we add them withpermitted_classes
toPsych.load
orPsych.load_file
? I'm not sure the right way about them.
@tenderlovemaking (Aaron Patterson) Do you have any ideas about the above concerns?
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0