qt5base-lts/tests/auto
Mårten Nordheim 5a47939d5c tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth
Our authentication code is race-y by design:
1. When two requests are fired off and queued at the same time in the
same QHttpNetworkConnection then if one of them encounters
"authentication required" then it will copy whatever credentials it got
to all the other channels in the connection. This is likely what the
first part of the test is testing.
2. If a later request is fired off and it includes credentials in the
url then the newly included credentials should be used instead of the
cached ones.

The race here can occurr when one socket either takes too long to
connect or the connected signal is not received early enough. Then the
first socket is used for both requests and then we can hit case #2 when
the url contains credentials.

Pick-to: 5.15
Change-Id: I646a5378d8c1256b2de98b51912953df29f68cb2
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2020-09-11 11:30:57 +02:00
..
cmake CMake: Fix configuration of CMake tests in-build-tree 2020-07-20 18:12:23 +02:00
concurrent Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
corelib [QtCore] QDateTime: switch from newRow to addRow in unit tests 2020-09-11 06:12:13 +02:00
dbus Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
gui Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth 2020-09-11 11:30:57 +02:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
printsupport Remove obsolete APIs and comments from QAbstractPrintDialog 2020-09-10 17:29:52 +02:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Interbase: Add support for the boolean type 2020-09-11 07:32:42 +02:00
testlib Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
tools Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
widgets macos: Rename macos style to macOS 2020-09-11 06:23:39 +02:00
xml Disable deprecation warnings in some tests 2020-07-29 14:33:23 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
auto.pro CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
CMakeLists.txt CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00