canvas-lms
canvas-lms copied to clipboard
psych (>4) and using security.yml.example as template security.xml causes Psych::AliasesNotEnabled: Alias parsing was not enabled.
Summary:
Steps to reproduce:
Use config/security.yml.example as template for security.xml 2. do an upgrade as in wiki, and run 3. RAILS_ENV=production bundle exec rake db:load_notifications
Expected behavior:
error free run of db:load_notifications
Actual behavior:
RAILS_ENV=production bundle exec rake db:load_notifications
rake aborted!
Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: true
to Psych::load
or Psych::safe_load
.
Additional notes:
config/security.xml.examples is using aliases, get rid of it, if Psych >4 is needed, and if don't want to use aliases:true.