[pkg-go] Bug#865664: golang-github-microcosm-cc-bluemonday FTBFS: dh_auto_test fails

Adrian Bunk bunk at debian.org
Fri Jun 23 15:21:27 UTC 2017


Source: golang-github-microcosm-cc-bluemonday
Version: 0.0~git20161012.0.f77f16f-1
Severity: serious
Tags: buster sid

Some recent change in unstable makes golang-github-microcosm-cc-bluemonday FTBFS:

https://tests.reproducible-builds.org/debian/history/golang-github-microcosm-cc-bluemonday.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/golang-github-microcosm-cc-bluemonday.html

...
   dh_auto_test -O--buildsystem=golang
	go test -v -p 1 github.com/microcosm-cc/bluemonday github.com/microcosm-cc/bluemonday/cmd/sanitise_html_email github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc
=== RUN   TestRegexpVars
--- PASS: TestRegexpVars (0.00s)
=== RUN   TestAllowDataURIImages
--- PASS: TestAllowDataURIImages (0.00s)
=== RUN   TestStrictPolicy
--- PASS: TestStrictPolicy (0.00s)
=== RUN   TestUGCPolicy
--- PASS: TestUGCPolicy (0.00s)
=== RUN   TestAllowElementsContent
--- PASS: TestAllowElementsContent (0.00s)
=== RUN   TestEmpty
--- PASS: TestEmpty (0.00s)
=== RUN   TestSignatureBehaviour
--- PASS: TestSignatureBehaviour (0.00s)
=== RUN   TestAllowDocType
--- PASS: TestAllowDocType (0.00s)
=== RUN   TestLinks
--- PASS: TestLinks (0.00s)
=== RUN   TestLinkTargets
--- PASS: TestLinkTargets (0.00s)
=== RUN   TestStyling
--- PASS: TestStyling (0.01s)
=== RUN   TestEmptyAttributes
--- PASS: TestEmptyAttributes (0.00s)
=== RUN   TestDataUri
--- PASS: TestDataUri (0.00s)
=== RUN   TestAntiSamy
--- PASS: TestAntiSamy (0.00s)
=== RUN   TestXSS
--- FAIL: TestXSS (0.00s)
	sanitize_test.go:1138: test 61 failed;
		input   : <IMG SRC="jav&#x0D;ascript:alert('XSS');">
		output  : 
		expected: <img src="jav%0Dascript:alert%28%27XSS%27%29;">
	sanitize_test.go:1138: test 74 failed;
		input   : <IMG SRC=`javascript:alert("RSnake says, 'XSS'")`>
		output  : 
		expected: <img src="%60javascript:alert%28%22RSnake">
=== RUN   TestIssue3
--- PASS: TestIssue3 (0.00s)
=== RUN   TestIssue9
--- PASS: TestIssue9 (0.00s)
=== RUN   TestIssue18
--- PASS: TestIssue18 (0.00s)
=== RUN   TestIssue23
--- PASS: TestIssue23 (0.00s)
=== RUN   TestAllowNoAttrs
--- PASS: TestAllowNoAttrs (0.00s)
=== RUN   TestSkipElementsContent
--- PASS: TestSkipElementsContent (0.00s)
=== RUN   TestTagSkipClosingTagNested
--- PASS: TestTagSkipClosingTagNested (0.00s)
=== RUN   TestAddSpaces
--- PASS: TestAddSpaces (0.00s)
=== RUN   TestTargetBlankNoOpener
--- PASS: TestTargetBlankNoOpener (0.00s)
=== RUN   ExampleNewPolicy
--- PASS: ExampleNewPolicy (0.00s)
=== RUN   ExampleStrictPolicy
--- PASS: ExampleStrictPolicy (0.00s)
=== RUN   ExampleUGCPolicy
--- PASS: ExampleUGCPolicy (0.00s)
=== RUN   ExamplePolicy_Sanitize
--- PASS: ExamplePolicy_Sanitize (0.00s)
=== RUN   ExamplePolicy_SanitizeBytes
--- PASS: ExamplePolicy_SanitizeBytes (0.00s)
=== RUN   ExamplePolicy_SanitizeReader
--- PASS: ExamplePolicy_SanitizeReader (0.00s)
FAIL
exit status 1
FAIL	github.com/microcosm-cc/bluemonday	0.060s
?   	github.com/microcosm-cc/bluemonday/cmd/sanitise_html_email	[no test files]
?   	github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc	[no test files]
dh_auto_test: go test -v -p 1 github.com/microcosm-cc/bluemonday github.com/microcosm-cc/bluemonday/cmd/sanitise_html_email github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc returned exit code 1
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 1



More information about the Pkg-go-maintainers mailing list