libreoffice-online/test
Ashod Nakashian dbc562d9ab wsd: parse headers with Poco::MessageHeader
Our header parses was overly simplistic and
didn't support a number of corner cases that
rfc2616 specifies (folding, for example). The
new approach is to simply normalize the headers by
removing invalid line-breaks and then let the
MessageHeader parser take care of parsing the
headers individually, which we then set on the request.

The new utility setHttpHeaders should be used
whenever we need to set a header in an request
to make sure it are sanitized and valid.

Change-Id: Ifa16fa9364f42183316749276c5d0a4c556cb740
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96371
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
2020-08-11 20:04:20 +02:00
..
data UnitRenderShape: update Writer reference SVG 2020-02-27 11:57:07 +01:00
.gitignore
countloolkits.hpp test: increase accepted timeout in countLoolKitProcesses() 2020-07-23 10:49:35 +02:00
DeltaTests.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
fakesockettest.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
helpers.hpp wsd: performance-unnecessary-value-param 2020-06-02 20:01:29 +02:00
httpcrashtest.cpp killpoco: removed Poco::Thread from net directory 2020-05-04 13:57:46 +02:00
httpwstest.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
integration-http-server.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
lokassert.hpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
Makefile.am Fix lool user control issue on packaging 2020-07-06 10:41:14 +02:00
run_unit.sh.in wsd: support --cleanup in loolwsd 2020-07-01 06:14:39 +02:00
test.cpp wsd: improve test logging 2020-02-23 22:04:04 +01:00
test.hpp Use #pragma once 2020-04-18 15:00:18 +02:00
TileCacheTests.cpp wsd: improved TileCache 2020-07-14 15:35:20 +02:00
TileQueueTests.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitAdmin.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitBadDocLoad.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitCalc.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitClient.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
UnitClose.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitConvert.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
UnitCopyPaste.cpp wsd: avoid unnecessary string ops 2020-06-23 06:41:58 +02:00
UnitCursor.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitEachView.cpp unit-each-view: actually assert the latest response 2020-06-18 09:35:32 +02:00
UnitFuzz.cpp kill IoUtil - obsolete & unused. 2020-04-10 16:38:25 +02:00
UnitHosting.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitHTTP.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
UnitInsertDelete.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitLargePaste.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitLoad.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitLoadTorture.cpp test: increase load timeout in UnitLoadTorture 2020-03-20 10:47:59 +01:00
UnitOAuth.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitOOB.cpp kill IoUtil - obsolete & unused. 2020-04-10 16:38:25 +02:00
UnitPasswordProtected.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitPaste.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitPrefork.cpp
UnitRenderingOptions.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitRenderShape.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitSession.cpp iOS likes to do extra escaping of an iframe's .src 2020-08-11 18:13:06 +02:00
UnitStorage.cpp
UnitTiffLoad.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitTileCache.cpp
UnitTimeout.cpp
UnitTyping.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
UnitUNOCommand.cpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +02:00
UnitWOPI.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPIDocumentConflict.cpp Poll - switch to ppoll for closer to microsecond accuracy. 2020-04-10 10:06:23 +02:00
UnitWOPIHttpHeaders.cpp wsd: add http-headers unit-test 2020-07-01 07:37:10 +02:00
UnitWOPILoadEncoded.cpp
UnitWopiOwnertermination.cpp
UnitWOPIRenameFile.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPISaveAs.cpp wsd: test assertion macros 2020-03-14 15:45:00 +01:00
UnitWOPITemplate.cpp Remember to shutdown the socket after serving files. 2020-06-03 18:15:33 +02:00
UnitWOPIVersionRestore.cpp re-factor: Socket / WebSocketHandler. 2020-03-11 16:48:03 +01:00
UnitWOPIWatermark.cpp wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01:00
WhiteBoxTests.cpp wsd: parse headers with Poco::MessageHeader 2020-08-11 20:04:20 +02:00
WopiProofTests.cpp Implement fake oldvalue/modulus/exponent and X-WOPI-ProofOld 2020-07-28 14:46:02 +02:00
WopiTestServer.hpp wsd: add http-headers unit-test 2020-07-01 07:37:10 +02:00