Page MenuHomePhabricator

Specific commonswiki page title too long making all scripts fail on that page
Closed, ResolvedPublic

Description

On commonswiki there exists https://commons.wikimedia.org/wiki/Commons:Deletion_requests/File:US_Navy_070210-N-7643B-079_The_statue_%5Eldquo,Unconditional_Surrender,%5Erdquo,_which_represents_a_famous_photo_taken_by_Alfred_Eisenstaedt_of_a_Sailor_kissing_a_nurse_in_Time_Square,_New_York_City_1945,_was_dedicated_to_the_city.jpg

But the page is unusable because of length it is not possible to create internal links like
[[:commons:Commons:Deletion requests/File:US Navy 070210-N-7643B-079 The statue ^ldquo,Unconditional Surrender,^rdquo, which represents a famous photo taken by Alfred Eisenstaedt of a Sailor kissing a nurse in Time Square, New York City 1945, was dedicated to the city.jpg]]

and json object contains wrong information, too:

"wgPageName":"Commons:Deletion_requests/File:US_Navy_070210-N-7643B-079_The_statue_^ldquo,Unconditional_Surrender,^rdquo,_which_represents_a_famous_photo_taken_by_Alfred_Eisenstaedt_of_a_Sailor_kissing_a_nurse_in_Time_Square,_New_York_City_1945,_was_dedicated_to_the_ci","wgTitle":"Deletion requests/File:US Navy 070210-N-7643B-079 The statue ^ldquo,Unconditional Surrender,^rdquo, which represents a famous photo taken by Alfred Eisenstaedt of a Sailor kissing a nurse in Time Square, New York City 1945, was dedicated to the ci","wgCurRevisionId":0,"wgRevisionId":0,"wgArticleId":0

So all scripts fail on this page. How could this page ever be created?


Version: wmf-deployment
Severity: major
URL: https://commons.wikimedia.org/wiki/Commons:Deletion_requests/File:US_Navy_070210-N-7643B-079_The_statue_%5Eldquo,Unconditional_Surrender,%5Erdquo,_which_represents_a_famous_photo_taken_by_Alfred_Eisenstaedt_of_a_Sailor_kissing_a_nurse_in_Time_Square,_New_York_City_1945,_was_dedicated_to_the_city.jpg

Details

Reference
bz69243

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:27 AM
bzimport set Reference to bz69243.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to merl from comment #0)

So all scripts fail on this page

What are "all scripts", for example?

(In reply to merl from comment #0)

So all scripts fail on this page

What are "all scripts", for example?

I detected this problem because my labs database bot created links which were not linked on rendered view (example [[de:Special:Permalink/132869819]]).

But this also affects all javascript gadgets on commons reading wgArticleId or wgPageName. The last one is used by all gadgets linking to toollabs for example.

(In reply to merl from comment #0)

and json object contains wrong information, too:

I can't reproduce this, the variables are all sane for me.

This page title without namespace is 253 bytes, which is just within the limit.
I wonder why the links break.

Note that the limit for file names (and thus titles in the File namespace) is 240 characters, not 255 as for other pages. No idea if that is the problem here, but it's something to keep in mind.

zhuyifei1999 claimed this task.
zhuyifei1999 subscribed.

Looks like the original DR has a correct link now.