[DRE-maint] Bug#759909: ruby-gon: FTBFS: ERROR: Test "ruby2.1" failed: Failure/Error: expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +

Lucas Nussbaum lucas at lucas-nussbaum.net
Sat Aug 30 20:58:37 UTC 2014


Source: ruby-gon
Version: 5.0.4-1
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140830 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>      Failure/Error: expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
>        
>        expected: "<script type=\"text/javascript\">\n//<![CDATA[\nwindow.gon={};gon.global={\"str\":\"\\u003C/script><script>alert('!')\\u003C/script>\"};\n//]]>\n</script>"
>             got: "<script type=\"text/javascript\">\n//<![CDATA[\nwindow.gon={};gon.global={\"str\":\"\\u003c/script\\u003e\\u003cscript\\u003ealert('!')\\u003c/script\\u003e\"};\n//]]>\n</script>"
>        
>        (compared using ==)
>        
>        Diff:
>        @@ -1,6 +1,6 @@
>         <script type="text/javascript">
>         //<![CDATA[
>        -window.gon={};gon.global={"str":"\u003C/script><script>alert('!')\u003C/script>"};
>        +window.gon={};gon.global={"str":"\u003c/script\u003e\u003cscript\u003ealert('!')\u003c/script\u003e"};
>         //]]>
>         </script>
>      # ./spec/gon/global_spec.rb:80:in `block (3 levels) in <top (required)>'
> 
> Finished in 0.13894 seconds
> 61 examples, 2 failures, 1 pending
> 
> Failed examples:
> 
> rspec ./spec/gon/basic_spec.rb:99 # Gon#include_gon outputs correct js with a script string
> rspec ./spec/gon/global_spec.rb:78 # Gon::Global#include_gon outputs correct js with a script string
> /usr/bin/ruby2.1 -S rspec ./spec/gon/basic_spec.rb ./spec/gon/global_spec.rb ./spec/gon/jbuilder_spec.rb ./spec/gon/rabl_with_rabl_rails_spec.rb ./spec/gon/rabl_with_rabl_spec.rb ./spec/gon/templates_spec.rb ./spec/gon/thread_spec.rb ./spec/gon/watch_spec.rb failed
> ERROR: Test "ruby2.1" failed: 

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/08/30/ruby-gon_5.0.4-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures. The build
was done with DEB_BUILD_OPTIONS="parallel=4", so if your packaging tries
to support this, it might be a good idea to explore whether this might
be the cause of the failure.



More information about the Pkg-ruby-extras-maintainers mailing list