Project

General

Profile

Actions

Defect #32172

closed

Warning "constant Loofah::HTML5::WhiteList is deprecated"

Added by Go MAEDA about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gems support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

$ ruby test/functional/wiki_controller_test.rb
Run options: --seed 34826

# Running:

................................./Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:141: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:148: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:151: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:144: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:144: warning: constant Loofah::HTML5::WhiteList is deprecated
........................./Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:141: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:148: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:151: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:144: warning: constant Loofah::HTML5::WhiteList is deprecated
/Users/maeda/redmines/gems/ruby/2.6.0/gems/rails-html-sanitizer-1.2.0/lib/rails/html/scrubbers.rb:144: warning: constant Loofah::HTML5::WhiteList is deprecated
...................................

Finished in 9.532832s, 9.7558 runs/s, 34.5123 assertions/s.
93 runs, 329 assertions, 0 failures, 0 errors, 0 skips
Actions #1

Updated by Go MAEDA about 5 years ago

I observed this after loofah was updated from 2.2.3 to 2.3.0.

Actions #2

Updated by Go MAEDA about 5 years ago

  • Category changed from Code cleanup/refactoring to Gems support

Reported the issue to the rails-html-sanitizer team.
https://github.com/rails/rails-html-sanitizer/issues/101

Actions #3

Updated by Go MAEDA about 5 years ago

The fix has already merged to master before I filed an issue.
https://github.com/rails/rails-html-sanitizer/pull/100

Actions #4

Updated by Go MAEDA about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

rails-html-sanitizer 1.3.0 has been released on October 6th and this issue was fixed.

Actions

Also available in: Atom PDF