libreoffice-online/test
Jan Holesovsky 2c246eed85 Sanitize the access_header.
The access_header can contain a lot of nonsense, like whitespace around
or additional \n's or \r's.  We used to sanitize that, but then
regressed in e95413d151 where the
"tokenize by any of \n\r" was by mistake replaced with "tokenize by
string '\n\r'".

Unfortunately the unit test didn't uncover that, and the further
refactorings of the related code have hidden that even more.

Change-Id: Ie2bf950d0426292770b599e40ee2401101162ff2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96638
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-19 11:48:44 +02:00
..
data UnitRenderShape: update Writer reference SVG 2020-02-27 11:57:07 +01:00
.gitignore
countloolkits.hpp wsd: single-char string literals -> char 2020-06-02 01:31:26 +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 wsd: RequestDetails takes the service root as argument 2020-06-02 17:28:40 +02:00
run_unit.sh.in
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: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01: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: single-char string literals -> char 2020-06-02 01:31:26 +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 wsd: move LOOLProtocol::tokenize to Util::tokenize 2020-06-02 18:03:36 +01: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
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 Sanitize the access_header. 2020-06-19 11:48:44 +02:00
WopiProofTests.cpp Ticks count is signed 2020-04-09 09:27:23 +02:00
WopiTestServer.hpp wsd: single-char string literals -> char 2020-06-02 17:22:26 +02:00