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)
committerMarkus Goetz <markus@woboq.com>
Mon, 11 Sep 2017 17:27:36 +0000 (19:27 +0200)
commit09173fb727ca271643657cb95de30844ff81a689
tree077e5a6f2cd88fbdfe280cfce320d09b7cadb8e3
parentde5de6284cc079225fa1a0461be77ec5970434c4
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