[Pywikipedia-bugs] [Maniphest] [Commented On] T184115: Pywikibot: Add missing docstring params

2021-12-29 Thread aaronlearns
aaronlearns added a comment.


  Going back and forth between the version history and commit history to add 
some info to the families...

TASK DETAIL
  https://phabricator.wikimedia.org/T184115

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: aaronlearns
Cc: aaronlearns, Mac-riya, Zabe, Kemsguy, Rounak_Saraf, Zkhalido, Mph8318, 
Morgan11235, mstucky, gerritbot, AdityaJ, Dvorapa, xSavitar, Aklapper, 
pywikibot-bugs-list, MtDu, Framawiki, jayvdb, Gaurav24072002, Abhinay76, 
Annysah01, Rohitgeddam, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, 
Chaytanya, JorisDarlingtonQuarshie, apaskulin, wiki-helenatxu, Urstrulykkr, 
Viztor, Wenyi, Wonnral, Tks4Fish, Mh-3110, Cpaulf30, Bright1055, Lahi, 
Toppole69, Ivana_Isadora, Mine0901, Jayprakash12345, JakeTheDeveloper, Tbscho, 
MayS, Beeyan, Mdupont, JJMC89, Altostratus, Avicennasis, MuhammadShuaib, 
Tmalhotra, SimmeD, mys_721tx, Dinoguy1000, Masti, Alchimista, Jay8g
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Triaged] T298375: family_tests.TestFamilyUrlRegex.test_each_family() fails if logging is not initialized

2021-12-29 Thread Xqt
Xqt triaged this task as "High" priority.

TASK DETAIL
  https://phabricator.wikimedia.org/T298375

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Jayprakash12345, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, 
jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Created] T298375: family_tests.TestFamilyUrlRegex.test_each_family() fails if logging is not initialized

2021-12-29 Thread Xqt
Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests, Regression.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **List of steps to reproduce** (step by step, including full links if 
applicable):
  run `pwb family_tests`
  
  **What happens?**:
  
tests: max_retries reduced from 15 to 1
...s.
==
ERROR: test_each_family (__main__.TestFamilyUrlRegex) (family='commons')
Test each family builds a working regex.
--
Traceback (most recent call last):
  File ".\tests\family_tests.py", line 235, in test_each_family
self.assertEqual(family.from_url(url), code)
  File "C:\pwb\GIT\core\pywikibot\family.py", line 862, in from_url
pywikibot.log('Found candidate {}'.format(site))
  File "C:\pwb\GIT\core\pywikibot\logging.py", line 183, in log
logoutput(text, decoder, newline, VERBOSE, **kwargs)
  File "C:\pwb\GIT\core\pywikibot\logging.py", line 76, in logoutput
_init()
  File "C:\pwb\GIT\core\pywikibot\logging.py", line 35, in _init
init_routine()
  File "C:\pwb\GIT\core\pywikibot\bot.py", line 353, in init_handlers
throttle = pywikibot.Site().throttle  # initialize a Throttle object
TypeError: TestFamilyUrlRegex.Site() missing 2 required positional 
arguments: 'code' and 'fam'

--
Ran 13 tests in 0.257s

FAILED (errors=1, skipped=1)

C:\pwb\GIT\core>
  
  but test pass if logging is already initialized e.g. a site is given with pwb 
wrapper script:
  
  `pwb -lang:en family_tests`
  
tests: max_retries reduced from 15 to 1
...s.
--
Ran 13 tests in 0.303s

OK (skipped=1)

C:\pwb\GIT\core>
  
  **Software version (if not a Wikimedia wiki), browser information, 
screenshots, other information, etc**:
  The test passes with 6.1.0 but fails with Pywikibot 6.2.0 or newer

TASK DETAIL
  https://phabricator.wikimedia.org/T298375

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Jayprakash12345, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, 
jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T298355: NoUsernameError exception when login on PWB with OAuth

2021-12-29 Thread Xqt
Xqt added subscribers: Legoktm, Xqt.
Xqt added projects: MediaWiki-Authentication-and-authorization, MediaWiki-API.
Xqt added a comment.


  This is an API response:
  
WARNING: API error mwoauth-invalid-authorization: The authorization headers 
in your request are not valid: Invalid signature
   headers=
{'X-Frame-Options': 'DENY', 'X-Cache': 'cp1081 pass, cp1077 pass', 
'Server-Timing': 'cache;desc="pass", host;desc="cp1077"', 'Content-Type': 
'application/json; charset=utf-8', 'Mediawiki-Api-Error': 
'mwoauth-invalid-authorization', 'Content-Disposition': 'inline; 
filename=api-result.json', 'Vary': 'Accept-Encoding', 'X-Content-Type-Options': 
'nosniff', 'X-Client-IP': '185.15.56.50', 'Content-Length': '421', 
'Cache-Control': 'private, must-revalidate, max-age=0', 'Report-To': '{ 
"group": "wm_nel", "max_age": 86400, "endpoints": [{ "url": 
"https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error_uri=/w3c/reportingapi/network_error/1.0.0;
 }] }', 'Server': 'mw1357.eqiad.wmnet', 'Age': '0', 
'Strict-Transport-Security': 'max-age=106384710; includeSubDomains; preload', 
'NEL': '{ "report_to": "wm_nel", "max_age": 86400, "failure_fraction": 0.05, 
"success_fraction": 0.0}', 'Date': 'Tue, 28 Dec 2021 21:43:15 GMT', 
'X-Cache-Status': 'pass', 'Permissions-Policy': 'interest-cohort=()', 
'Set-Cookie': 'WMF-Last-Access=28-Dec-2021;Path=/;HttpOnly;secure;Expires=Sat, 
29 Jan 2022 12:00:00 GMT, 
WMF-Last-Access-Global=28-Dec-2021;Path=/;Domain=.wikipedia.org;HttpOnly;secure;Expires=Sat,
 29 Jan 2022 12:00:00 GMT, GeoIP=US:::37.75:-97.82:v4; Path=/; secure; 
Domain=.wikipedia.org', 'Accept-Ranges': 'bytes', 'Connection': 'keep-alive'}
  
  The error code is `'mwoauth-invalid-authorization'` and the error info is 
`'Invalid signature'`.

TASK DETAIL
  https://phabricator.wikimedia.org/T298355

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Legoktm, Framawiki, Mpaa, Aklapper, pywikibot-bugs-list, Stang, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, WDoranWMF, Viztor, 
DannyS712, Wenyi, Amorymeltzer, Tbscho, MayS, Sethakill, Mdupont, JJMC89, 
dg711, Dvorapa, Agabi10, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org