#2995 Wiki Update for Ambassadors Membership Verfication fails
Closed: Fixed None Opened 7 years ago by jsimon.

= phenomenon =
The Ambassadors Membership Verfication is a imperative instrument for the Ambassador Group and also for people who want to find the right Ambassador for their region

the automated update of
https://fedoraproject.org/wiki/Ambassadors/MembershipService/Verification2
which is part of
https://fedoraproject.org/wiki/Ambassadors/MembershipService/Verification
is no longer working

the manual test with the update script from
https://fedorahosted.org/fama/browser/membership-mwclient-0.2.py
fails with

Traceback (most recent call last):
File "membership-mwclient-0.2.py", line 283, in <module>
calc_list()
File "membership-mwclient-0.2.py", line 94, in calc_list
site.login(username, password) # Optional
File "/usr/lib/python2.7/site-packages/mwclient/client.py", line 304, in login
raise errors.LoginError(self, login['login'])
mwclient.errors.LoginError: (<site object="" 'fedoraproject.org="" w="" '="">, {'cookieprefix': 'fpo-mediawiki_en_', 'token': '94d6ea4ddc498cfc9102bf3674fcaace', 'sessionid': '9u3flra6drvrlvm9pb6dtd0iq7', 'result': 'NeedToken'})

= reason =
the new confirmation math-questions when updating the wiki ;)? (not sure if this also called a captcha?)

= recommendation =
if the asumed reason is right - can we take the new mechanism out for the
https://fedoraproject.org/wiki/Ambassadors/MembershipService/Verification2 page?
any other ideas welcome!


or can the mwclient plugin tuned to bypass the security question?

Can you use the same method the blocker bug page uses?

See: http://fedoraproject.org/wiki/Final_Release_Blockers and the link at the top to the script.

No, that script is unfortunately completely different. It uses python-simplemediawiki while the script of the ambassadors uses python-mwclient. I already digged into that issue and I think, I'm able to solve it. I already were able to fire a single update to the wiki page in question from a test system. Just give me some more time :)

Okay, issue technically solved from my side: Update to python-mwclient-0.6.5-1, package is already submitted in Bodhi: https://admin.fedoraproject.org/updates/search/python-mwclient

Somebody from infrastructure should perform that update on the appropriate machine. Thanks! :)

bapp01 already uses another python-mwclient-0.6.5-1 from a private override repository.

The error that Kevin retrieved by a manual run is:

{{{
This takes loooooong time to execute...
Traceback (most recent call last):
File "/usr/local/bin/membership-mwclient.py", line 293, in ?
calc_list()
File "/usr/local/bin/membership-mwclient.py", line 167, in calc_list
country = countries[country_code]
KeyError: 'FX'
}}}

ISO-3166 said historically "FX" is "France, Metropolitan".

GeoIP-1.4.7 contains "FX", GeoIP-1.4.8 does not. Machine has GeoIP-1.4.8-1.el5.i386.

Toshio performs an update within the FAS database to update historical "FX" -> "FR".

Login to comment on this ticket.

Metadata