Page MenuHomePhabricator

if Category has "&" in title causes DPL to fail to yeild results.
Open, LowPublic


Author: luckenbach

Steps to Reproduce:

  1. Create Category B&R Services
  2. Create some pages and make them apart of the Category B&R Services
  3. Create a new page with the following DPL settings

category = B&R services
ordermethod = lastedit,pagetouched
order = descending
addpagecounter = true
addeditdate = true

The page should return:
Extension:DynamicPageList (DPL), version 1.8.9 : WARNING: No results.

To resolve this I removed the ampersand(&) from the title of the Category and adjusted the Category tags on the articles and all works as expected.

We are running MW 1.16
PHP 5.3.2
DPL v 1.8.9

Version: unspecified
Severity: normal
OS: Linux
Platform: PC



Event Timeline

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

MW 1.16 end of life: August 2011. Please upgrade.

luckenbach wrote:

This still occurs in 1.18

wmf.amgine3691 wrote:

This refers, I believe, to Extension:DynamicPageList (third-party), not DynamicPageList (Wikimedia). WMF is not supporting that extension afaik.

The exact code *does* display a list in DynamicPageList (Wikimedia) on my 1.20.alpha install, though of course does not include the edit date, counter.

luckenbach wrote:

The Extension page for Dynamic Page List (Third-party) has a link for bugs here so that is why I posted on this Bugzilla.

wmf.amgine3691 wrote:

Not a problem Zach, bugzilla is used by extension developers to maintain their software as well. However, the folks behind DPL 3rd party have not released an update afaik since 2009, which may mean they are also no longer monitoring the bugzilla.

I encountered similar problems with DPL v3.3.3 in MW 1.34.2.

This gives an empty list:
{{#dpl: category=abc & xyz}}

While this raises an error:
{{#dpl: category=abc_%26_xyz}}

Only workaround is to rename the category.