Originally the swwikimedia wiki limited editing to the members of the medlem (member) user group only. That limitation was lifted in T41671: Open editing on se.wikimedia.org for any logged-in user but both the user group and the associated user right editallpages were left.
It has now been discovered that these leftovers interfere with the available grants and therfore also both OAuth and BotPasswords. The easiest solution is to clean up the config and remove the medlem group and editallpages right.
Was: API error protectednamespace incorrectly triggered when logged in using BotPassword
When trying to do edits to the Projekt namespace on the wmse chapterwiki I repeatedly get a "API error protectednamespace: You do not have permission to edit pages in the Projekt namespace." warning despite the bot having the correct permissions to edit this namespace (you need the editallpages permission which is given to logged in users). The bot is logged in using a BotPassword
Logging the bot in using the main password allows me to do the same changes so the error is either caused by BotPasswords or by pywikibots implementation of it.
The grants given to the BotPassword "account" were
- Basic rights
- High-volume editing
- Edit existing pages
- Edit protected pages
- Create, edit, and move pages
- Upload, replace and move files
- Patrol changes to pages
I encounter this both when using the replace.py script and when using pywikibot as a library. I also encounter it even when logging the bot in as a sysop (and making the bot a sysop).