Page MenuHomePhabricator

Parsoid needs to properly handle media redirects
Open, HighPublic

Description

See the failures added in https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/837733.

It appears that Parsoid doesn't follow redirects for image href and resource attributes.

Event Timeline

ssastry triaged this task as Medium priority.Oct 5 2022, 4:06 AM
ssastry moved this task from Needs Triage to Missing Functionality on the Parsoid board.

The tests for redirect capability were added in ea6eaf7db632f16445a5edffcb19137ed329a991. In theory we should be using the same code as core here, via DataAccess -- that is, Parser::fetchFileAndTitle().

MSantos raised the priority of this task from Medium to High.Tue, Sep 19, 3:52 PM