Page MenuHomePhabricator

Make it clear that the mwbot replacement do not follow redirects
Closed, ResolvedPublic1 Estimated Story Points

Description

In T401673 there's an ask if we could make the API calls to follow redirects. I digged into the current code and there's kind of a bug there right now. We don't specify that we will follow or not follow redirects, so by default we will follow redirect. However when fetch gets a redirect for a POST, it will switch to GET and drop the body (=our call will fail). See https://fetch.spec.whatwg.org/#http-redirect-fetch

AC:

  • Make sure our code do not try to follow redirects because redirects do not work for us

Event Timeline

Change #1198297 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Make it clear that the API calls do not follow redirects

https://gerrit.wikimedia.org/r/1198297

Change #1198297 merged by jenkins-bot:

[mediawiki/core@master] selenium: Make it clear that the API calls do not follow redirects

https://gerrit.wikimedia.org/r/1198297