Page MenuHomePhabricator

RepoHooks::onApiCheckCanExecute calls ApiBase::getTitleOrPageId, which uses 'title' in params
Closed, InvalidPublic

Description

During the check to RepoHooks::onApiCheckCanExecute there is a call to the function ApiBase::getTitleOrPageId and that call uses the value for the key 'title' from extractRequestParams, which contains values for a sitelink as they uses 'site' and 'title' -pairs. This happens for all modules subclassing from ApiModifyBase.

One solution could be to override the getTitleOrPageId to act correctly in our cases, that is set up a similar method in ApiModifyBase.


Version: unspecified
Severity: minor

Details

Reference
bz44314

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:37 AM
bzimport set Reference to bz44314.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).