Page MenuHomePhabricator

"Download as PDF" button links to Special:Book instead of Special:DownloadAsPdf on dewiki
Open, LowPublicBUG REPORT

Description

Originally reported by User:4inHand

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

  1. Go to https://en.wikipedia.org/wiki/Special:PendingChanges in an incognito window
  2. Click one of the articles
  3. Click "Download as PDF" button

What happens?:
It will go to Special:Book instead of Special:DownloadAsPdf. The error "The Book Creator doesn't support PDF rendering" will be displayed.

This bug only occurs when the user is logged out, and it still occurs in safemode.

What should have happened instead?:
It should go to Special:DownloadAsPdf.

Other information (browser name/version, screenshots, etc.):
All browsers (e.g. Firefox, Chrome)

Event Timeline

Dragoniez subscribed.

This is bizarre. This one seems to be relevant only to the project, article, and user type, and also the skin doesn't seem to make a difference. I tried importing the article to testwiki but couldn't reproduce the same issue.

That definitely is quite strange...

I managed to identify the cause of the reported situation: pending changes.

This task is fundamentally the same as T306232, and when there are pending changes (that in one way or another only influence logged-out users), Electron thinks that the displayed page isn't the latest revision. Try visiting Special:PendingChanges on a wiki where FlaggedRevs is installed, choose a page in the list, go there, and you should be able to reproduce the same situation.

Change #1060455 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/ElectronPdfService@master] Ensure that the stable revision has a PDF link

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

Change #1060462 had a related patch set uploaded (by TheDJ; author: TheDJ):

[integration/config@master] Add FlaggedRevs as dependency of ElectonPdfService

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

Novem_Linguae renamed this task from "Download as PDF" button link to Special:Book instead of Special:DownloadAsPdf on dewiki to "Download as PDF" button links to Special:Book instead of Special:DownloadAsPdf on dewiki.Aug 8 2024, 2:05 PM
Novem_Linguae updated the task description. (Show Details)

Change #1060462 merged by jenkins-bot:

[integration/config@master] Zuul: [mediawiki/extensions/ElectonPdfService] Add FlaggedRevs as dependency

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

Mentioned in SAL (#wikimedia-releng) [2024-08-09T07:38:12Z] <James_F> Zuul: [mediawiki/extensions/ElectonPdfService] Add FlaggedRevs as dependency for T370740

Change #1060455 abandoned by TheDJ:

[mediawiki/extensions/ElectronPdfService@master] Ensure that the stable revision has a PDF link

Reason:

not really working on this any longer

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

Jdlrobson-WMF changed the task status from Open to Stalled.May 23 2025, 11:29 PM
Jdlrobson-WMF moved this task from Backlog to Triaged (PHP) on the Collection board.

This isn't limited to dewiki. I can replicate it on enwiki with all pages listed on Special:PendingChanges. I assume it affects all wikis that use FlaggedRevs.

Jdlrobson-WMF changed the task status from Stalled to Open.May 28 2025, 11:21 PM
Jdlrobson-WMF updated the task description. (Show Details)