Update server url in case of permanent redirection #5972
authorChristian Kamm <mail@ckamm.de>
Fri, 8 Sep 2017 09:59:45 +0000 (11:59 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:05 +0000 (22:01 +0200)
commitb810ce7768904e702b16e7aa6083f014829add3f
tree824e5718008d331a7f932c6d1ecf3ddb6da0c796
parent1c0d80c20da72cb9de5b134648ed4cb6b5aa86e7
Update server url in case of permanent redirection #5972

This is the first time the account url may update outside of
account setup.

Summary of redirection handling:
1. During account setup (wizard)
   - status.php gets permanently redirected -> adjust url
   - authed PROPFIND gets *any* redirection -> adjust url
2. During connectivity ping (ConnectionValidator)
   - status.php gets permanently redirected -> adjust url (new!)

All other redirections should be followed transparently and
don't update the account url in the settings.
src/gui/owncloudsetupwizard.cpp
src/libsync/abstractnetworkjob.cpp
src/libsync/abstractnetworkjob.h
src/libsync/connectionvalidator.cpp
src/libsync/networkjobs.cpp
src/libsync/networkjobs.h