Last modified: 2011-02-13 17:01:35 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 T29376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27376 - when using ApiBase::PARAM_TYPE => 'integer' without a min or max value, api doesn't validate the input is actually an integer
when using ApiBase::PARAM_TYPE => 'integer' without a min or max value, api d...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-13 07:33 UTC by Bawolff (Brian Wolff)
Modified: 2011-02-13 17:01 UTC (History)
4 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2011-02-13 07:33:20 UTC

    
Comment 1 Bawolff (Brian Wolff) 2011-02-13 07:36:38 UTC
oops, hit enter by accident.

When you specify a parameter to an api module is an integer with ApiBase::PARAM_TYPE => 'integer', but don't list a max or min value, the api doesn't seem to check its actually an integer. Expected behaviour would be for it to pass the value through intval to turn it into an integer, like it does if a min or max is specified.
Comment 2 Sam Reed (reedy) 2011-02-13 17:01:03 UTC
r82060
Comment 3 Sam Reed (reedy) 2011-02-13 17:01:35 UTC
Test

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


Navigation
Links