Geertivp added a comment.

  **At the end of the script** I have added the following credential status 
reporting:
  
    for site in sorted(pywikibot._sites.values()):
        print(site, site.username(), site.is_oauth_token_available(), 
site.logged_in())
  
  Result for //standalone Pywikibot client//:
  
  > commons:commons GeertivpBot **False False**
  > wikidata:wikidata GeertivpBot **False True**
  
  Result for //PAWS Pywikibot script//:
  commons:commons GeertivpBot **True False**
  wikidata:wikidata GeertivpBot **True False**
  
  There is clearly a difference in credential status between a standalone 
Pywikibot and the PAWS Pywikibot. This can explain the difference in behaviouw 
when (implicitly) accessing a P18 <https://phabricator.wikimedia.org/P18> to 
Wikimedia Commons. The script is not intentionally accessing the P18 
<https://phabricator.wikimedia.org/P18> image.
  
  T252306 <https://phabricator.wikimedia.org/T252306> would suggest that PAWS 
should use GET instead of POST. But it is not clear to me how to enforce that. 
It is suggesting a special OAuth setup in PAWS user-config.py.

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

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

To: Geertivp
Cc: bd808, Xqt, Mpaa, Geertivp, Aklapper, BernhardHumm, Tdbot, Dvorapa, 
pywikibot-bugs-list, zhuyifei1999, Chicocvenancio, Knuthuehne, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, AshokChakra, Viztor, 94rain, Wenyi, R96340, 
Allthingsgo, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, 
mys_721tx, Jane023, yuvipanda, Capt_Swing, jayvdb, Ricordisamoa, Masti, 
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to