In short, I CAN edit a page in a custom namespace with the interface, but NOT with the
API... using the sysop account. Is there some code I can do a simple check of? I see no
prior bugs about this so maybe there is a tricky configuration setting? If I remove the
following namespace protection, the API works:
$wgNamespaceProtection[NS_SUSDATA] = array( 'editsd' );
But, I need the namespace protection.
Thanks,
al
________________________________
From: Al Johnson <alj62888(a)yahoo.com>
To: "mediawiki-l(a)lists.wikimedia.org" <mediawiki-l(a)lists.wikimedia.org>
Sent: Friday, February 22, 2013 12:47 AM
Subject: [API] Can't edit with API in custom namespace
I hope someone can help.
I have a custom namespace.
I can edit via API in the _main_ namespace, thus, my custom bot is logging in, getting
edit token, etc.. - API edit code tests good.
I can edit via the WEB interface in the _custom_ namespace successfully -
security/permissions configed correctly.
But, I cannot edit via the API in the _custom_ namespace. So, there is something about
editing a custom namespace WITH the api.
Error output:
<?xml version="1.0"?><api><error
code="protectednamespace" info="You're not allowed to edit pages
in the "SusData" namespace" /></api>
Any ideas?
Thanks,
al
P.S. I can post config stuff if needed.