Page MenuHomePhabricator

<ref name="someReferenceName">some reference</ref> creates rows in pagelinks with a pl_title = ''
Closed, ResolvedPublic

Description

Author: daniel.macey

Description:
Using Cite and <ref> tags invalid rows are created in the pagelinks table.

These rows are invalid because they have a pl_title = ''.

This -may- break Special:MostLinkedPages page (a fix was put in to stop invalid titles breaking the page) - see #18943, #17751 and #17713 for more information on this flavor of issue.

To identify broken pages:

SELECT page.*
FROM

wikidb.page page left join
wikidb.pagelinks p on page.page_id = p.pl_from

where p.pl_title = '';

To reproduce:

  1. Run the query above to ensure you have no broken page titles
  2. Edit a page and add <ref name="test">http://google.com, a search engine</ref>
  3. Re-run the query

I'm not confident this is a bug with the Cite extension or whether it is the engine but thought it most appropriate here.

I am assuming blank rows are an issue because issue #17713 says "Invalid database rows worry me" in regards to rows with an empty pl_title


Version: unspecified
Severity: normal
Platform: PC

Details

Reference
bz21841

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:52 PM
bzimport added a project: Cite.
bzimport set Reference to bz21841.
bzimport added a subscriber: Unknown Object (MLST).

Can't imagine this is xp specific..

I can't reproduce this; what version are you using?

daniel.macey wrote:

(In reply to comment #2)

I can't reproduce this; what version are you using?

MediaWiki Version 1.14.0
Cite MW1.14-r45577

pdhanda wrote:

Hi Daniel,
I cannot reproduce this either. Is it possible for you to easily this on a later version ?
-p

  • This bug has been marked as a duplicate of bug 16965 ***