Bug 223978

Summary: REGRESSION(r274244): [GTK][WPE] Two http/tests/security/contentSecurityPolicy tests crash
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Carlos Alberto Lopez Perez <clopez>
Severity: Normal CC: aperez, cgambrell, dpino, ews-watchlist, jbedard, mkwst, pnormand, thorton, webkit-bug-importer, zdobersek
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=222668
Description Flags
Patch none

Description Carlos Alberto Lopez Perez 2021-03-30 19:37:30 PDT
This two tests crash after r274244 on GTK and WPE ports

Regressions: Unexpected crashes (2)
 http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py [ Crash ]
 http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy.py [ Crash ]

A libsoup critical warning is emitted when running this tests:

(process:4649): libsoup-CRITICAL **: 04:19:24.386: soup_filter_input_stream_read_until: assertion '!include_boundary || (boundary_length < length)' failed

Debugging the issue it seems is related that the Apache server now doesn't send a "Content-length" header with the size of the body for the new version of the tests with cgi/python
Therefore in that case we should end the text stream with an empty \r\n
Comment 1 Carlos Alberto Lopez Perez 2021-03-30 19:51:07 PDT
Created attachment 424728 [details]
Comment 2 Carlos Alberto Lopez Perez 2021-03-30 20:32:37 PDT
Created attachment 424731 [details]
Comment 3 EWS 2021-03-31 01:41:21 PDT
Committed r275274: <https://commits.webkit.org/r275274>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424731 [details].
Comment 4 Radar WebKit Bug Importer 2021-03-31 01:42:13 PDT