Page MenuHomePhabricator

API action=centralnoticequerycampaign does not work for campaigns with spaces
Closed, ResolvedPublic

Description

For example see:
https://meta.wikimedia.org/wiki/Special:ApiSandbox#action=centralnoticequerycampaign&format=json&campaign=Trademark%20policy%20discussion
Expected: it should find the campaign called "Trademark policy discussion" [https://meta.wikimedia.org/w/index.php?title=Special:CentralNotice&method=listNoticeDetail&notice=Trademark+policy+discussion]
Actual result: it only looks for the first word, "Trademark"
It does not seem to work with underscores ('_'), pluses ('+'), minuses/en-dashes ('-') or spaces (' '/'%20').


Version: unspecified
Severity: normal

Details

Reference
bz57373

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:32 AM
bzimport set Reference to bz57373.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

It does not seem to work with underscores ('_'), pluses ('+'),
minuses/en-dashes ('-') or spaces (' '/'%20').

To clarify, it does work with characters like '-', but I can't figure out any reasonable way to encode spaces and get the proper result. I thought underscores or pluses would work, but no...

Change 97170 had a related patch set uploaded by Aude:
Allow query campaign api to work for campaigns with space in their names

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

Change 97170 merged by Mwalker:
Allow query campaign api to work for campaigns with space in their names

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

Patch was merged; hence closing as FIXED. Please reopen if more work is needed.