Page MenuHomePhabricator

REST: Trying to load the content "magic" image description pages leads to redirect loop
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • Receive a 307 pointing to the same URL again

What should have happened instead?:

Event Timeline

daniel triaged this task as High priority.Dec 19 2023, 6:49 AM

Change 984098 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] Intercept self-redirects triggered by virtual file description pages

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

The proposed patch will trigger a 404 when trying to load the HTML for a "magic" file description page.
Making it redirect to the appropriate REST URL on for foreign repo isn't possible right now, since we have no way to (reliably) know the REST path of the remote repo.

ssastry renamed this task from REST: Trying to load the content "magic" image scription pages leads to redirect loop to REST: Trying to load the content "magic" image description pages leads to redirect loop.Dec 19 2023, 3:44 PM

Change 984098 merged by jenkins-bot:

[mediawiki/core@master] Intercept self-redirects triggered by virtual file description pages

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

Change 985328 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] REST: Add tests for handling file description pages

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

Change 985330 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] WikiFilePage: Fix handling of file redirects

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

Change 985328 merged by jenkins-bot:

[mediawiki/core@master] REST: Add tests for handling file description pages

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

Change 985330 merged by jenkins-bot:

[mediawiki/core@master] WikiFilePage: Fix handling of file redirects

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

@daniel is there anything else left in this ticket? Should we close it?

daniel claimed this task.

@daniel is there anything else left in this ticket? Should we close it?

Yep, this is done.