1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-05-04 17:34:11 +02:00

HTTP2: Only from Qt 5.9.4

This commit is contained in:
Markus Goetz 2018-02-09 16:06:38 +01:00 committed by Camila San
parent 5e2270bd57
commit e82869d10e
No known key found for this signature in database
GPG Key ID: 7A4A6121E88E2AD4
3 changed files with 25 additions and 10 deletions

View File

@ -1,7 +1,22 @@
ChangeLog ChangeLog
========= =========
version 2.4.0 (2017-12-XX) version 2.4.1 (2017-02-xx)
* Ignore files with file names that can't be encoded for the filesystem (#6287, #5676, #5719)
* Issues: Speed up insertion and add hard upper limit (#6272)
* Notifications: Fix "Dismiss" action
* Notifications: Fix timer invocation on macOS
* Notifications: Immediately poll when account online
* Protocol: Remove entries for auto resolved conflicts (#6316)
* owncloudcmd: Set proxy before capabilities call (#6281)
* owncloudcmd: Do not do the capability call when --nonshib is passed
* Avatars: Use old location for servers <10 (#6279)
* Link shares: Change default share name (#6298)
* Nautilus integration: Work with python2 and python3
* HTTP2: Only allow with Qt 5.9.4 (#6285)
* Crash fixes
version 2.4.0 (2017-12-21)
* If you're using 2.4.0 alpha1, please upgrade as previous alphas/rcs had an issue with hidden files and renames! * If you're using 2.4.0 alpha1, please upgrade as previous alphas/rcs had an issue with hidden files and renames!
* OAuth2 authentication support by opening external browser (#5668) * OAuth2 authentication support by opening external browser (#5668)
* Shibboleth: Change to use OAuth2 if supported (#6198) * Shibboleth: Change to use OAuth2 if supported (#6198)
@ -204,7 +219,7 @@ version 2.2.2 (release 2016-06-21)
version 2.2.1 (release 2016-06-06) version 2.2.1 (release 2016-06-06)
* Fix out of memory error when too many uploads happen (#4611) * Fix out of memory error when too many uploads happen (#4611)
* Fix display errors in progress display (#4803 #4856) * Fix display errors in progress display (#4803 #4856)
* LockWatcher: Remember to upload files after they become unlocked (#4865) * LockWatcher: Remember to upload files after they become unlocked (#4865)
* Fix overlay icons for files with umlauts (#4884) * Fix overlay icons for files with umlauts (#4884)
* Certs: Re-ask for different cert after rejection (#4898, #4911) * Certs: Re-ask for different cert after rejection (#4898, #4911)
* Progress: Don't count items without propagation jobs (#4856, #4910) * Progress: Don't count items without propagation jobs (#4856, #4910)
@ -261,7 +276,7 @@ version 2.1 (release 2015-12-03)
* GUI: Improved upload/download progress UI (#3403, #3569) * GUI: Improved upload/download progress UI (#3403, #3569)
* Allowed sharing with ownCloud internal users and groups from Desktop * Allowed sharing with ownCloud internal users and groups from Desktop
* Changed files starting in .* to be considered hidden on all platforms (#4023) * Changed files starting in .* to be considered hidden on all platforms (#4023)
* Reflect read-only permissions in filesystem (#3244) * Reflect read-only permissions in filesystem (#3244)
* Blacklist: Clear on successful chunk upload (#3934) * Blacklist: Clear on successful chunk upload (#3934)
* Improved reconnecting after network change/disconnect (#4167 #3969 ...) * Improved reconnecting after network change/disconnect (#4167 #3969 ...)
* Improved performance in Windows file system discovery * Improved performance in Windows file system discovery
@ -335,7 +350,7 @@ version 2.0.2 (release 2015-10-21)
* ShareDialog: Fix folder display (#3659) * ShareDialog: Fix folder display (#3659)
* AccountSettings: Restore from legacy only once (#3565) * AccountSettings: Restore from legacy only once (#3565)
* SSL Certificate Error Dialog: show account name (#3729) * SSL Certificate Error Dialog: show account name (#3729)
* Tray notification: Don't show a message about modified folder (#3613) * Tray notification: Don't show a message about modified folder (#3613)
* PropagateLocalRemove: remove entries from the DB even if there was an error. * PropagateLocalRemove: remove entries from the DB even if there was an error.
* Settings UI improvements (eg. #3713, #3721, #3619 and others) * Settings UI improvements (eg. #3713, #3721, #3619 and others)
* Folder: Do not create the sync folder if it does not exist (#3692) * Folder: Do not create the sync folder if it does not exist (#3692)
@ -966,7 +981,7 @@ version 1.1.1 (release 2012-10-18), csync 0.60.1 required
directory, away from the .csync dir. directory, away from the .csync dir.
* Renamed exclude.lst to sync-exclude.lst and moved it to * Renamed exclude.lst to sync-exclude.lst and moved it to
/etc/appName()/ for more clean packaging. From the user path, /etc/appName()/ for more clean packaging. From the user path,
still exclude.lst is read if sync-exclude.lst is not existing. still exclude.lst is read if sync-exclude.lst is not existing.
* Placed custom.ini with customization options to /etc/appName() * Placed custom.ini with customization options to /etc/appName()
version 1.0.5 (release 2012-08-14), csync 0.50.8 required version 1.0.5 (release 2012-08-14), csync 0.50.8 required
@ -986,8 +1001,8 @@ version 1.0.4 (release 2012-08-10), csync 0.50.8 required
* [GUI] Proxy configuration dialog added. * [GUI] Proxy configuration dialog added.
* [GUI] Added Translations to languages Slovenian, Polish, Catalan, * [GUI] Added Translations to languages Slovenian, Polish, Catalan,
Portuguese (Brazil), German, Greek, Spanish, Czech, Italian, Slovak, Portuguese (Brazil), German, Greek, Spanish, Czech, Italian, Slovak,
French, Russian, Japanese, Swedish, Portuguese (Portugal) French, Russian, Japanese, Swedish, Portuguese (Portugal)
all with translation rate >90%. all with translation rate >90%.
* [Fixes] Loading of self signed certs into Networkmanager (#oc-843) * [Fixes] Loading of self signed certs into Networkmanager (#oc-843)
* [Fixes] Win32: Handle SSL dll loading correctly. * [Fixes] Win32: Handle SSL dll loading correctly.
* [Fixes] Many other small fixes and improvements. * [Fixes] Many other small fixes and improvements.

View File

@ -93,9 +93,8 @@ QNetworkReply *AccessManager::createRequest(QNetworkAccessManager::Operation op,
qInfo(lcAccessManager) << op << verb << newRequest.url().toString() << "has X-Request-ID" << requestId; qInfo(lcAccessManager) << op << verb << newRequest.url().toString() << "has X-Request-ID" << requestId;
newRequest.setRawHeader("X-Request-ID", requestId); newRequest.setRawHeader("X-Request-ID", requestId);
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 4)
// only enable HTTP2 with Qt 5.9 because Qt 5.8.0 has too many bugs // only enable HTTP2 with Qt 5.9.4 because old Qt have too many bugs (e.g. QTBUG-64359 is fixed in >= Qt 5.9.4)
// (only use one connection if the server does not support HTTP2)
if (newRequest.url().scheme() == "https") { // Not for "http": QTBUG-61397 if (newRequest.url().scheme() == "https") { // Not for "http": QTBUG-61397
newRequest.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true); newRequest.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true);
} }

View File

@ -318,6 +318,7 @@ bool ConnectionValidator::setAndCheckServerVersion(const QString &version)
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
// Record that the server supports HTTP/2 // Record that the server supports HTTP/2
// Actual decision if we should use HTTP/2 is done in AccessManager::createRequest
if (auto job = qobject_cast<AbstractNetworkJob *>(sender())) { if (auto job = qobject_cast<AbstractNetworkJob *>(sender())) {
if (auto reply = job->reply()) { if (auto reply = job->reply()) {
_account->setHttp2Supported( _account->setHttp2Supported(