Page MenuHomePhabricator

Attempting to protect a page that doesn't exist (salting) returns "unknown error"
Closed, ResolvedPublic

Description

"<?xml version=\"1.0\"?><api><error code=\"unknownerror\" info=\"Unknown error: ``missingtitles-createonly&#039;&#039;\" /></api>"

Trying to protect any page that doesn't exist gives the above error

			if(!$titleObj->exists() && $p[0] != 'create')
				$this->dieUsageMsg(array('missingtitles-createonly'));

Test article was "LOLWHATTATATEST"

http://www.mediawiki.org/wiki/API:Edit_-_Protect

code: missingtitle-createonly
info: Missing titles can only be protected with 'create'

Seems just needs tying up (Will try and sort this myself


Version: unspecified
Severity: normal

Details

Reference
bz21740

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:46 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz21740.
Reedy created this task.Dec 2 2009, 12:18 AM