Last modified: 2013-12-17 10:36:06 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 T59373, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57373 - API action=centralnoticequerycampaign does not work for campaigns with spaces
API action=centralnoticequerycampaign does not work for campaigns with spaces
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-21 21:24 UTC by PiRSquared17
Modified: 2013-12-17 10:36 UTC (History)
3 users (show)

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


Attachments

Description PiRSquared17 2013-11-21 21:24:58 UTC
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').
Comment 1 PiRSquared17 2013-11-21 21:27:26 UTC
(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...
Comment 2 Gerrit Notification Bot 2013-11-23 01:22:27 UTC
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
Comment 3 Gerrit Notification Bot 2013-11-25 18:09:12 UTC
Change 97170 merged by Mwalker:
Allow query campaign api to work for campaigns with space in their names

https://gerrit.wikimedia.org/r/97170
Comment 4 Andre Klapper 2013-12-17 10:36:06 UTC
Patch was merged; hence closing as FIXED. Please reopen if more work is needed.

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


Navigation
Links