Last modified: 2012-01-03 22:01:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34170, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32170 - Bild-prefix is added to il_to value of imagelinks table
Bild-prefix is added to il_to value of imagelinks table
Status: RESOLVED DUPLICATE of bug 33409
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-03 12:06 UTC by merl
Modified: 2012-01-03 22:01 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description merl 2011-11-03 12:06:31 UTC
On dewiki the imagelinks tables contains values like "Bild:<imagename>" at il_to although the page source correctly contains [[Datei:<imagename>]]. The image namespace prefix must not be add to the il_to value.

If you are doing a null edit using index.php the wrong entry is deleted. But we made a null edit on all pages and there are some few news ones every day.

You can find examples on the missing file reported created twice a week on http://de.wikipedia.org/wiki/Wikipedia:Redaktion_Bilder/Arbeitsliste_Fehlende_Bilder if you are searching for "Datei:Bild:"

I don't know the reason, but perhaps there is a single not updated squid or an old mantanace scripts that run on wmf.
Comment 1 Tim Starling 2011-12-13 04:57:58 UTC
The test cases I've checked all involve <gallery>. One of them has a gallery which uses a mixture of Bild: and Datei: namespaces:

<https://de.wikipedia.org/w/index.php?title=Haleakal%C4%81-Nationalpark&oldid=96185932&action=edit>

The imagelinks table row for the image with Datei: is correct, but the one with Bild: has the prefix. 

mysql> select il_to from imagelinks,page where page_id=il_from and page_namespace=0 and page_title='Haleakalā-Nationalpark';
+-----------------------------------------+
| il_to                                   |
+-----------------------------------------+
| Bild:Kipahulu_coast.jpg                 |
| Bild:Panorama_Haleakala.jpg             |
| Bild:Panorama_Haleakala2.jpg            |
| Commons-logo.svg                        |
| Haleakala_National_Park_map_2008.08.jpg |
| Haleakala_crater.jpg                    |
| Maui_moku_map_2.jpg                     |
+-----------------------------------------+


It's consistent with the namespaceAliases item in the localisation cache being empty, but the namespaceNames being correct. If Bild is not a recognised namespace, then normal image links would be converted to pagelinks entries, but in a gallery they get put in the imagelinks table. Sure enough:

mysql> select pl_namespace,pl_title from pagelinks,page where page_id=pl_from and page_namespace=0 and page_title='Haleakalā-Nationalpark';

...
|            0 | Bild:USA_Hawaii_location_map.svg          |
...

Probably shares a root cause with bug 31576.
Comment 2 Tim Starling 2012-01-03 22:01:33 UTC
https://bugzilla.wikimedia.org/show_bug.cgi?id=32404#c11

*** This bug has been marked as a duplicate of bug 33409 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links