Last modified: 2011-03-13 18:04:32 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 T24237, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22237 - Unrecognized value for parameter blfilterredir
Unrecognized value for parameter blfilterredir
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-23 01:16 UTC by Sam Reed (reedy)
Modified: 2011-03-13 18:04 UTC (History)
6 users (show)

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


Attachments

Description Sam Reed (reedy) 2010-01-23 01:16:36 UTC
Probably will get round to fixing this, but logging it as I can't atm

Supplying blfilterredir= barfs, should just take that as all (ie default)
Comment 1 Sam Reed (reedy) 2010-01-23 01:46:52 UTC
Or should it? :/
Comment 2 Roan Kattouw 2010-01-23 15:02:38 UTC
This is a deeper problem with the param validation code in ApiBase: what should happen to an invalid value? Maybe there should be a boolean flag in the getAllowedParams() array that specifies whether it's OK to fall back to the default in this case (if not, we'll go back to the old behavior and throw an error).

OTOH, it's a bot API, our clients are responsible for and perfectly capable of supplying valid requests.
Comment 3 John Du Hart 2010-06-23 16:19:37 UTC
I don't think this is worth throwing in a fallback option for the parameter. Roan is right, bot programmers should be smart enough to pass the right value to the API.

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


Navigation
Links