[DRE-maint] Bug#1093926: ruby-rails-html-sanitizer: FTBFS: NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Santiago Vila
sanvila at debian.org
Fri Jan 24 01:00:01 GMT 2025
Package: src:ruby-rails-html-sanitizer
Version: 1.4.4-1
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=ruby --with ruby
dh_auto_clean -O--buildsystem=ruby
dh_ruby --clean
dh_autoreconf_clean -O--buildsystem=ruby
dh_clean -O--buildsystem=ruby
debian/rules binary
dh binary --buildsystem=ruby --with ruby
dh_update_autotools_config -O--buildsystem=ruby
dh_autoreconf -O--buildsystem=ruby
dh_auto_configure -O--buildsystem=ruby
dh_ruby --configure
dh_auto_build -O--buildsystem=ruby
dh_ruby --build
[... snipped ...]
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_allow_colons_in_path_component = 0.00 s = E
Error:
SanitizersTest#test_allow_colons_in_path_component:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:215:in `test_allow_colons_in_path_component'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:214
SanitizersTest#test_should_allow_code_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_code_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_header_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_header_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_feimage_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_feimage_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_polyline_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_polyline_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_hkern_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_hkern_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_span_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_span_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_img_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_img_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_h3_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_h3_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_tt_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_tt_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_not_fall_for_xss_image_hack_<IMG SRC=javascript:alert('XSS')> = 0.00 s = E
Error:
SanitizersTest#test_should_not_fall_for_xss_image_hack_<IMG SRC=javascript:alert('XSS')>:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:356:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:355
SanitizersTest#test_should_allow_mfenced_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_mfenced_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_sanitize_script_tag_with_multiple_open_brackets = 0.00 s = E
Error:
SanitizersTest#test_should_sanitize_script_tag_with_multiple_open_brackets:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:369:in `test_should_sanitize_script_tag_with_multiple_open_brackets'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:368
SanitizersTest#test_combination_of_svg_and_style_with_script_payload = 0.00 s = .
SanitizersTest#test_should_allow_article_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_article_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_mtext_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_mtext_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_clippath_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_clippath_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_x03a_handling_2 = 0.00 s = E
Error:
SanitizersTest#test_x03a_handling_2:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:486:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:485
SanitizersTest#test_sanitizer_sanitize_raises_not_implemented_error = 0.00 s = .
SanitizersTest#test_should_allow_rect_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_rect_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_s_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_s_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_legend_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_legend_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_combination_of_select_and_style_with_script_payload = 0.00 s = .
SanitizersTest#test_should_allow_datalist_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_datalist_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_cursor_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_cursor_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_allow_pattern_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_pattern_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
SanitizersTest#test_should_not_fall_for_xss_image_hack_<IMG SRC=javascript:alert(String.fromCharCode(88,83,83))> = 0.00 s = E
Error:
SanitizersTest#test_should_not_fall_for_xss_image_hack_<IMG SRC=javascript:alert(String.fromCharCode(88,83,83))>:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:356:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:355
SanitizersTest#test_should_sanitize_invalid_script_tag = 0.00 s = E
Error:
SanitizersTest#test_should_sanitize_invalid_script_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:365:in `test_should_sanitize_invalid_script_tag'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:364
SanitizersTest#test_should_allow_video_tag = 0.00 s = E
Error:
SanitizersTest#test_should_allow_video_tag:
NoMethodError: undefined method `html_document_fragment' for Rails::Dom::Testing:Module
Rails::Dom::Testing.html_document_fragment(html_version: html_version).parse(text)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:134:in `fragment'
/usr/share/rubygems-integration/all/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/assertions/dom_assertions.rb:36:in `assert_dom_equal'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:724:in `assert_sanitized'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:195:in `block (3 levels) in <class:SanitizersTest>'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:737:in `scope_allowed_tags'
/<<PKGBUILDDIR>>/test/sanitizer_test.rb:194:in `block (2 levels) in <class:SanitizersTest>'
rails test <<PKGBUILDDIR>>/test/sanitizer_test.rb:193
TextOnlyScrubberTest#test_removes_all_tags_and_keep_the_content = 0.00 s = .
TextOnlyScrubberTest#test_skips_text_nodes = 0.00 s = .
ReturningStopFromScrubNodeTest#test_returns_stop_from_scrub_if_scrub_node_does = 0.00 s = .
Finished in 0.662748s, 508.4891 runs/s, 205.2063 assertions/s.
337 runs, 136 assertions, 0 failures, 238 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/sanitizer_test.rb" "test/scrubbers_test.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby3.1" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-rails-html-sanitizer returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202501/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ruby-rails-html-sanitizer, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Pkg-ruby-extras-maintainers
mailing list