Skip to content

Update server url in case of permanent redirection #5972#6009

Merged
guruz merged 2 commits intomasterfrom
permanent-redirect
Sep 11, 2017
Merged

Update server url in case of permanent redirection #5972#6009
guruz merged 2 commits intomasterfrom
permanent-redirect

Conversation

@ckamm
Copy link
Copy Markdown
Contributor

@ckamm ckamm commented Sep 8, 2017

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

Summary of redirection handling:

  1. During account setup (wizard) - fixes Wizard: 301 'Moved Permanently' redirection is not being followed  #5954
    • 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.

See #5972

@ckamm
Copy link
Copy Markdown
Contributor Author

ckamm commented Sep 11, 2017

Depends on #6007 (first commit)

@ogoffart
Copy link
Copy Markdown
Contributor

👍 but dependent commit needs fixes for the build

* Move it to networkjobs
* Minor adjustments to its logic
* Fixes redirect handling for oauth/basic http auth check #6003
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.
@ckamm ckamm force-pushed the permanent-redirect branch from 83ff456 to 0aa7763 Compare September 11, 2017 12:05
@guruz guruz merged commit 09173fb into master Sep 11, 2017
@guruz guruz deleted the permanent-redirect branch September 11, 2017 17:27
@SamuAlfageme SamuAlfageme mentioned this pull request Apr 19, 2018
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wizard: 301 'Moved Permanently' redirection is not being followed

3 participants