Page MenuHomePhabricator

Regression: Sidebar "User uploads" link now missing from Commons user pages
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Visit a user page on Wikimedia Commons, for instance https://commons.wikimedia.org/wiki/User:Bjh21, and look for "User uploads" under "Toolbox" in the sidebar.

Actual Results:

There is no link labelled "User uploads"

Expected Results:

There should be a link labelled "User uploads" linking to a list of uploads by the user whose user page I'm looking at.

This link is meant to be provided by the UploadsLink extension. Apparently it recently broke in the Monobook skin (T254548), but now it seems to be broken in Vector as well.

Event Timeline

Did you see the link with MonoBook? (or any other skin). It seems all are not displaying it, but I cannot reproduce it locally after checking out the relevant changes per https://commons.wikimedia.org/wiki/Special:Version

I didn't get the link in Monobook either. The Timeless skin includes a suitable link, but it's just labelled "Uploads" so I think it's generated by some different route.

Mmm I also can't replicate this locally but can on the beta cluster. I wonder if another extension or configuration is altering it's behaviour.

Jdlrobson renamed this task from "User uploads" link now missing from Commons user pages in Vector skin to Regression: "User uploads" link now missing from Commons user pages in Vector skin.Jun 15 2020, 5:32 PM

I didn't get the link in Monobook either. The Timeless skin includes a suitable link, but it's just labelled "Uploads" so I think it's generated by some different route.

That's a different link. Other skins are displaying that one too.

What did it supposedly link to? Could it be that someone considered this as duplicative? Because, in Vector I can on every user page find two links behind the “More” menu (which is in the sidebar for the other skins I think): one named “Uploads” with a link to Special:ListFiles/<username>, and one named “Contributions” linking to Special:Contributions/<username>. Because of this I never missed the line in the sidebar.

Ammarpad renamed this task from Regression: "User uploads" link now missing from Commons user pages in Vector skin to Regression: Sidebar "User uploads" link now missing from Commons user pages.Jun 16 2020, 12:07 AM

The links on the "More" menu are added by a gadget; I've not managed to work out which one. This seems to mean that they're only available to logged-in users. The sidebar link provided by UploadsLink goes to /w/index.php?title=Special:ListFiles/<username>?ilshowall=1, so it's not quite the same as the link in the "More" menu.

I have no idea why this is happening but we are talking about the user uploads link in the toolbox in the sidebar.

It shows for me locally:

Screen Shot 2020-06-16 at 3.56.32 PM.png (178×294 px, 18 KB)

but not in the beta cluster. Spent another hour looking into this today but can't see anything obvious :(

I suspect something is going wrong inside The method Skin::getRelevantUser however I have no idea how to debug why. Other extensions are not having this issue - CiteThisPage for example adds the toolbox link fine but doesn't rely on this method.

Ammarpad triaged this task as High priority.EditedJun 16 2020, 11:13 PM

Even though this is not a critical feature, I think we need to know why this happened and from where it started.

Change 606045 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/CiteThisPage@master] Ensure hook callback does not abort SidebarBeforeOutput

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

Change 606046 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Clarify hook documentation

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

Change 606052 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/UploadsLink@master] Ensure hook callback does not abort SidebarBeforeOutput

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

Change 606052 merged by jenkins-bot:
[mediawiki/extensions/UploadsLink@master] Ensure hook callback does not abort SidebarBeforeOutput

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

Change 606045 merged by jenkins-bot:
[mediawiki/extensions/CiteThisPage@master] Ensure hook callback does not abort SidebarBeforeOutput

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

Change 606046 merged by jenkins-bot:
[mediawiki/core@master] skins: Make the SidebarBeforeOutput hook non-abortable

https://gerrit.wikimedia.org/r/c/mediawiki/core/ /606046