Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Steps to replicate the issue**:
  
  Account settings 
<https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.config.html#account-settings>
 can be appreviated by an asteriks like
  
    usernames['wikibooks']['*'] = 'mySingleUsername'
  
  which means that the username is the same for all wikibooks sites. But this 
wild card setting is not fully supported. Run `pwb login -all -autocreate 
-async` for example.
  
  **What happens?**
  
    pwb login -all -autocreate -async
    Logged in on commons:commons as <redacted> bot.
    ERROR: commons:* is not a valid site, please remove it from your user-config
    ERROR: wikimedia:* is not a valid site, please remove it from your 
user-config
    ERROR: wikipedia:* is not a valid site, please remove it from your 
user-config
    ERROR: wikiquote:* is not a valid site, please remove it from your 
user-config
    ERROR: wikisource:* is not a valid site, please remove it from your 
user-config
    ERROR: wikiversity:* is not a valid site, please remove it from your 
user-config
    ERROR: wikibooks:* is not a valid site, please remove it from your 
user-config
    ERROR: wiktionary:* is not a valid site, please remove it from your 
user-config
    ERROR: wikidata:* is not a valid site, please remove it from your 
user-config
    ERROR: wikinews:* is not a valid site, please remove it from your 
user-config
    ERROR: wikivoyage:* is not a valid site, please remove it from your 
user-config
    WARNING: 
/srv/paws/lib/python3.10/site-packages/pywikibot/scripts/login.py:98: 
UserWarning: Site meta:meta instantiated using different code "*"
      site = pywikibot.Site(code, family)
    
    Logged in on meta:meta as DPLA bot.
    WARNING: 
/srv/paws/lib/python3.10/site-packages/pywikibot/scripts/login.py:98: 
UserWarning: Site mediawiki:mediawiki instantiated using different code "*"
      site = pywikibot.Site(code, family)
    
    Logged in on mediawiki:mediawiki as <redacted> bot.
  
  **What should have happened instead?**
  
  Bot should login for each site in a given family if a wild card is used.
  
  **Other information** (browser name/version, screenshots, etc.):
  
  - Refer 
https://codesearch.wmcloud.org/pywikibot/?q=config%5C.usernames&files=&excludeFiles=&repos=
 for other possible malfunctions
  - See T345209 <https://phabricator.wikimedia.org/T345209>

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

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

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Dominicbm, Xqt, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to