Page MenuHomePhabricator
Feed Advanced Search

Feb 6 2023

chiefgeek157 added a comment to T328814: Login retrieves token from incorrect location.

More info. Lines marked >>>RJC>>> are my debug prints.

% pwb login
>>>RJC>>> APISite.version()
>>>RJC>>> SiteInfo._get_general(key=generator, expiry=1 day, 0:00:00
>>>RJC>>> general not in self._cache
>>>RJC>>> forcing
>>>RJC>>> props: ['namespaces', 'namespacealiases', 'general']
>>>RJC>>> SiteInfo._get_siteinfo(prop=['namespaces', 'namespacealiases', 'general'], expiry=1 day, 0:00:00)
>>>RJC>>> request: /w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases|general&continue=
WARNING: API error readapidenied: You need read permission to use this module.
>>>RJC>>> Caught APIError: readapidenied: You need read permission to use this module.
[help: See https://MYWIKI/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
>>>RJC>>> No read persmissions
ERROR: You have no API read permissions. Seems you are not logged in.
Logging in to my_family:en as me@me_bot
WARNING: API warning (main): Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.
WARNING: API warning (login): Fetching a token via "action=login" is deprecated. Use "action=query&meta=tokens&type=login" instead.
>>>RJC>>> self.action: login
>>>RJC>>> login_result: {'warnings': {'main': {'*': 'Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'}, 'login': {'*': 'Fetching a token via "action=login" is deprecated. Use "action=query&meta=tokens&type=login" instead.'}}, 'login': {'result': 'NeedToken', 'token': 'f71af5fc300dbd72908ede7648441f0263e120a0+\\'}}
ERROR: Received incorrect login token. Forcing re-login.
>>>RJC>>> TokenWallet.__getitem__(login)
>>>RJC>>> self.site.user(): None
>>>RJC>>> self._currentuser: None
>>>RJC>>> self._tokens: {}
>>>RJC>>> calling self.site.get_tokens([])
>>>RJC>>> APISite.get_tokens([])
>>>RJC>>> not type or load_all not false
>>>RJC>>> ParamInfo.parameter(module=query+tokens, param_name=type
>>>RJC>>> ParamInfo.fetch({'query+tokens'}
>>>RJC>>> self._paraminfo: {}
>>>RJC>>> calling self._init()
>>>RJC>>> ParamInfo._init()
>>>RJC>>> self._modules: {}
>>>RJC>>> APISite.version()
>>>RJC>>> SiteInfo._get_general(key=generator, expiry=1 day, 0:00:00
>>>RJC>>> general not in self._cache
>>>RJC>>> forcing
>>>RJC>>> props: ['namespaces', 'namespacealiases', 'general']
>>>RJC>>> SiteInfo._get_siteinfo(prop=['namespaces', 'namespacealiases', 'general'], expiry=1 day, 0:00:00)
>>>RJC>>> request: /w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases|general&continue=
WARNING: API error readapidenied: You need read permission to use this module.
>>>RJC>>> Caught APIError: readapidenied: You need read permission to use this module.
Feb 6 2023, 3:53 PM · Patch-For-Review, TestMe, Pywikibot-login.py, Pywikibot
chiefgeek157 added a comment to T328814: Login retrieves token from incorrect location.

Here is a hand-built "log" based on print statements I previously inserted in a local copy.

Feb 6 2023, 1:34 PM · Patch-For-Review, TestMe, Pywikibot-login.py, Pywikibot

Feb 3 2023

chiefgeek157 created T328814: Login retrieves token from incorrect location.
Feb 3 2023, 10:11 PM · Patch-For-Review, TestMe, Pywikibot-login.py, Pywikibot

Mar 30 2019

chiefgeek157 committed rELDQce9b65ae9346: Use login user for search when admin user not given.
Use login user for search when admin user not given
Mar 30 2019, 1:47 PM

Mar 28 2019

chiefgeek157 committed rELDQ7fcf2da2e054: Add logic to use the login user's credentials for binding during the search….
Add logic to use the login user's credentials for binding during the search…
Mar 28 2019, 7:03 PM
chiefgeek157 committed rELDQ8bedc8982a16: Use login user for search when admin user not given.
Use login user for search when admin user not given
Mar 28 2019, 7:03 PM
chiefgeek157 committed rELDQ86b95292a375: Use login user for search when admin user not given.
Use login user for search when admin user not given
Mar 28 2019, 7:03 PM
chiefgeek157 added a comment to T219530: Support use of login user credentials for search (no admin user needed).

Submitted change 499844 with code changes to Client.php.

Mar 28 2019, 6:13 PM · LDAP-Extensions, Patch-For-Review, MediaWiki-extensions-LDAPProvider
chiefgeek157 updated the task description for T219530: Support use of login user credentials for search (no admin user needed).
Mar 28 2019, 6:12 PM · LDAP-Extensions, Patch-For-Review, MediaWiki-extensions-LDAPProvider
chiefgeek157 created T219530: Support use of login user credentials for search (no admin user needed).
Mar 28 2019, 4:32 PM · LDAP-Extensions, Patch-For-Review, MediaWiki-extensions-LDAPProvider

Oct 6 2015

chiefgeek157 created T114760: Add ability to search using Semantic MediaWiki properties..
Oct 6 2015, 2:48 PM · Discovery-ARCHIVED, CirrusSearch

Jul 30 2015

chiefgeek157 updated the task description for T107290: Run jobs async does not honor $wgServerName.
Jul 30 2015, 1:26 PM · MW-1.26-release, MW-1.27-release-notes, MW-1.27-release (WMF-deploy-2016-03-22_(1.27.0-wmf.18)), Patch-For-Review, MediaWiki-Core-JobQueue

Jul 29 2015

chiefgeek157 updated the task description for T107290: Run jobs async does not honor $wgServerName.
Jul 29 2015, 3:05 PM · MW-1.26-release, MW-1.27-release-notes, MW-1.27-release (WMF-deploy-2016-03-22_(1.27.0-wmf.18)), Patch-For-Review, MediaWiki-Core-JobQueue
chiefgeek157 renamed T107290: Run jobs async does not honor $wgServerName from Run obs async does not honor $wgServerName to Run jobs async does not honor $wgServerName.
Jul 29 2015, 3:03 PM · MW-1.26-release, MW-1.27-release-notes, MW-1.27-release (WMF-deploy-2016-03-22_(1.27.0-wmf.18)), Patch-For-Review, MediaWiki-Core-JobQueue
chiefgeek157 created T107290: Run jobs async does not honor $wgServerName.
Jul 29 2015, 3:02 PM · MW-1.26-release, MW-1.27-release-notes, MW-1.27-release (WMF-deploy-2016-03-22_(1.27.0-wmf.18)), Patch-For-Review, MediaWiki-Core-JobQueue