Page MenuHomeMiraheze

Setting permission recreatecargodata doesn't work
Closed, ResolvedPublic

Description

On Special:ManageWikiPermissions/sysop I have enabled "Recreate data contained in Cargo tables (recreatecargodata)" for the sysop group, but when I try to create a Cargo table (via this URL) I get this error:

Permission error
You do not have permission to recreate Cargo data, for the following reason:
You are not allowed to execute the action you have requested.

Interestingly, the recreatecargodata permission doesn't appear in Special:ListGroupRights. Actually, if I add other permissions to sysop, e.g. noanalytics, they also don't appear there.

Can anyone help me figure out what I'm doing wrong?

Thanks! :)

Event Timeline

Reception123 added a subscriber: John.

@Samwilson You're probably not doing anything wrong :) The addition of ManageWikiPermissions is fairly new, so it's not unlikely that there is an issue with it. @John please check.

Hm. Seems the reversal of yesterday wherever weren’t using cachinh but always updating it, seems now we’re using it but never updating it. Yet this worked for @Paladox yesterday so I’m confused?

I’ll debug more when I’m back later.

This is what it looks like for me in the cdb file

root@mw1:/mnt/mediawiki-static/cdb/managewiki# cat permissions-wmaucommwiki.cdb
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
getVersion1}availablegroups["*","user","autoconfirmed","bot","sysop","bureaucrat","autopatrolled","confirmed","rollbacker","Committee_members","member"]
                                                                                                                                                        ?
permissions{"*":{"permissions":{"0":"createaccount","2":"edit","3":"createpage","4":"createtalk","5":"writeapi","6":"viewmywatchlist","7":"editmywatchlist","8":"viewmyprivateinfo","9":"editmyprivateinfo","10":"editmyoptions","11":"abusefilter-log","12":"abusefilter-log-detail","13":"abusefilter-view","14":"centralauth-autoaccount","15":"centralauth-merge","16":"oathauth-enable"},"addgroups":null,"removegroups":null},"user":{"permissions":{"0":"move","1":"move-subpages","2":"move-rootuserpages","3":"move-categorypages","4":"movefile","6":"edit","7":"createpage","8":"createtalk","9":"writeapi","10":"upload","11":"reupload","12":"reupload-shared","13":"minoredit","14":"editmyusercss","15":"editmyuserjson","16":"editmyuserjs","17":"purge","18":"sendemail","19":"applychangetags","20":"changetags","21":"editcontentmodel","22":"user","23":"mwoauthmanagemygrants","24":"torunblocked"},"addgroups":null,"removegroups":null},"autoconfirmed":{"permissions":["autoconfirmed","editsemiprotected","mwoauthproposeconsumer","mwoauthupdateownconsumer","skipcaptcha","createaccount"],"addgroups":null,"removegroups":null},"bot":{"permissions":["bot","autoconfirmed","editsemiprotected","nominornewtalk","autopatrol","suppressredirect","apihighlimits","writeapi","skipcaptcha"],"addgroups":null,"removegroups":null},"sysop":{"permissions":["block","createaccount","delete","deletedhistory","deletedtext","undelete","editinterface","editusercss","edituserjson","edituserjs","import","importupload","move","move-subpages","move-rootuserpages","move-categorypages","patrol","autopatrol","protect","editprotected","rollback","upload","reupload","reupload-shared","unwatchedpages","autoconfirmed","editsemiprotected","ipblock-exempt","blockemail","markbotedits","apihighlimits","browsearchive","noratelimit","movefile","unblockself","suppressredirect","mergehistory","managechangetags","deletechangetags","abusefilter-modify","abusefilter-modify-restricted","abusefilter-revert","deletelogentry","deleterevision","abusefilter-log-detail","override-antispoof","skipcaptcha","globalblock-whitelist","massmessage","nuke","tboverride","titleblacklistlog"],"addgroups":["sysop","member","member","member","Committee_members"],"removegroups":[]},"bureaucrat":{"permissions":["noratelimit","managewiki","override-antispoof"],"addgroups":["sysop"],"removegroups":[]},"autopatrolled":{"permissions":["autopatrol","patrol","skipcaptcha"],"addgroups":null,"removegroups":null},"confirmed":{"permissions":["editsemiprotected","autoconfirmed","skipcaptcha"],"addgroups":null,"removegroups":null},"rollbacker":{"permissions":["rollback"],"addgroups":null,"removegroups":null},"Committee_members":{"permissions":[],"addgroups":["confirmed","member"],"removegroups":[]},"member":{"permissions":["read"],"addgroups":[],"removegroups":[]}}^%?G??0

I tested on test1 too and is having the same problem. I tried searching for recreatecargodata in the cdb file but couldn't find it. It looks like it's not updating the file only the getVersion field is being updated? Or maybe it's because the getVersion field only goes to one and not up anymore?

Anyways deleting the file works.

https://github.com/miraheze/ManageWiki/blob/master/includes/ManageWikiHooks.php#L86 seems flawed in that it keeps going to one even after deleting the file.

Paladox raised the priority of this task from Normal to High.
In T3601#68764, @John wrote:

Hm. Seems the reversal of yesterday wherever weren’t using cachinh but always updating it, seems now we’re using it but never updating it. Yet this worked for @Paladox yesterday so I’m confused?

I’ll debug more when I’m back later.

It only worked because i removed the cdb file for test1 and it regenerated. At the time i was trying to figure out why i coulden't add a user right but it was because i added it to the group. (by the time i released that i had already deleted the file so didn't see the problem then)

Thank you!!

All is working now.