User Details
- User Since
- Feb 20 2015, 4:46 AM (478 w, 14 h)
- Availability
- Available
- IRC Nick
- VcamX
- LDAP User
- VcamX
- MediaWiki User
- Unknown
Mar 18 2016
Sep 23 2015
Aug 24 2015
@jayvdb done.
Aug 20 2015
Aug 19 2015
Aug 17 2015
Aug 14 2015
Aug 13 2015
I can confirm that it's not a bug in mwoauth. It about how oauthlib and requests-oauth deal with it.
Our login request with OAuth will end up to the following branch in requests-oauthlib:
Aug 12 2015
Aug 10 2015
Aug 9 2015
Aug 8 2015
The description mentions 'several patches under review'. What are those patches?
Aug 7 2015
@jayvdb Done
This is solved by PS17 of T102602.
Aug 6 2015
Aug 5 2015
Thank you @Halfak! I just proposed a new OAuth client. And the old one could be disabled :)
Aug 4 2015
@Addshore, it looks like the OAuth client lacks the two permissions about watch list:
https://travis-ci.org/VcamX/pywikibot-core/jobs/74042992#L743
https://travis-ci.org/VcamX/pywikibot-core/jobs/74042992#L804
Sorry for my careless. I proposed a new client, also the old one could be disabled or expired. Thank you! :)
@jayvdb, for python 2.7.6, it doesn't work.
Aug 3 2015
Aug 1 2015
With respect to T104764, This is the configuration of OAuth client on the beta cluster: http://deployment.wikimedia.beta.wmflabs.org/w/index.php?title=Special:OAuthListConsumers/view/6ad8150a40735dac98d4f07826061cd1&name=&publisher=&stage=0
Thanks @hashar!
The tests seem to work well on the beta cluster :D
It looks more like to be the problem of orain.org... Does it have possibility that requests lib can't adapt to orain.org or the TLS configuration of orain.org?
Jul 31 2015
@Tgr I think you're right.
Jul 30 2015
@jayvdb Only 2.7.0 2.7.0, 2.7.1, 2.7.2
The version (0.8.0) of unittest2 we specify for python 2.6 will work well. So I'd like to use unittest2 0.8.0.
@hashar, it looks like the OAuth client lacks the two permissions about watch list:
https://travis-ci.org/VcamX/pywikibot-core/jobs/73185512#L741
https://travis-ci.org/VcamX/pywikibot-core/jobs/73185512#L800
Sorry for my careless. I proposed a new client, also the old one could be disabled. Thank you! :)
Jul 29 2015
It seems that the version of OAuth extension on Orain isn't compatible with the latest mwoauth 0.2.4:
https://travis-ci.org/VcamX/pywikibot-core/jobs/73185509#L417
Jul 28 2015
@jayvdb A problem: there is no memcached on toollabs. But memcached is necessary. OAuth relies on memcached for temporary tokens and sessions.
@jayvdb the problem of pip has been fixed by using virtualenv, only test on python 2.7.0 failed.
https://ci.appveyor.com/project/VcamX/pywikibot-core/build/1.0.116
What happened on Python 2.7.0 is so weird.
https://github.com/wikimedia/pywikibot-core/blob/master/tests/namespace_tests.py#L222
self.assertEqual(Namespace.resolve([6]), [file_ns])
The first argument is what Namespace.resolve([6]) returns, that's a list only containing a Namespace object. The second argument is a list only containing file_ns, that's also a Namespace object.
These two object should be equal:
__eq__ of Namespace: https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/site.py#L332
[file_ns]: https://ci.appveyor.com/project/VcamX/pywikibot-core/build/1.0.96#L4553
Namespace.resolve([6]): https://ci.appveyor.com/project/VcamX/pywikibot-core/build/1.0.94#L4516
Yes. Pip supports environment markers since 6.0 but the pre-installed version in some tests is <6.0.
Reference: https://pip.pypa.io/en/latest/news.html
Jul 27 2015
@Addshore and @jayvdb, I proposed an OAuth consumer on Orain. It'll be used for Pywikibot's OAuth test.
@hashar Thanks! Th new consumer is proposed. I think the old one could be set to disabled or expired.
Jul 26 2015
Hi @hashar. After discussion with @jayvdb, we'd like to use Pywikibot-oauth as an official account for OAuth testing. Could you help me to assign this account to group of Confirmed users so I could propose a new OAuth client? Thank you!
Jul 24 2015
@jayvdb, I think Orain Meta acts as deployment for T104764. It's the cental wiki and has OAuth consumer registration enabled.
Jul 21 2015
@hashar I've proposed a consumer. The callback url of the previous one I proposed is wrong so it could be rejected.
@Ladsgroup I think I'm in tools project now. Can you try to add me to tools.pywikibot-testwiki group again? Thank you!
Jul 20 2015
Jul 17 2015
Jul 16 2015
@XZise Okay, I'll send a new patch for that.
Jul 15 2015
@jayvdb Thanks for your explain! I was stuck in the C implementation of SSLError. It helps me a lot! :D
@jayvdb, 2.7.8 works well, 2.7.10 has the same problem.
@jayvdb @Halfak I submitted a new proposal. The permission requested should be enough for the two basic tests decribed in T74065:
- Perform a login and logout using OAuth with assertions that verify APISite._userinfo is correct.
- Login, edit a userpage, and confirm the edit was performed using the OAuth-authenticated account.
I think it's a platform-specific bug for ssl.SSLError, or a misuse of ssl.SSLError.
I executed the following commands on different platforms:
>>> import ssl >>> class AError(Exception): pass >>> str(ssl.SSLError('a', AError('b')))
and got different results: