Last modified: 2009-05-10 10:01:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 18750 - remove empty prefix="" from action=paraminfo
remove empty prefix="" from action=paraminfo
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
Depends on:
  Show dependency treegraph
Reported: 2009-05-10 09:58 UTC by Umherirrender
Modified: 2009-05-10 10:01 UTC (History)
3 users (show)

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


Description Umherirrender 2009-05-10 09:58:34 UTC
To signal a true boolean in xml the syntax 'attribut=""' is used. When there is a module without a prefix, action=paraminfo shows a prefix="", but that means there is no prefix (because the string is empty), and not a true boolean. So remove this empty attribut, to show there is no prefix (or make this as invalid). Thanks.

Maybe getModulePrefix() should give a null instead of an empty string, when there is no prefix.
Comment 1 Roan Kattouw 2009-05-10 10:01:31 UTC
Yes, empty strings and boolean trues look the same, and yes, that's not ideal, but that's how it is, and it can't be changed because that would break every bot using the API.

IMO it's pretty clear from context that 'prefix' is not a boolean attribute (knowing there is a prefix is pretty useless unless you know what it is), so I'm closing this as INVALID.

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