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

TASK DESCRIPTION
  **Steps to replicate the issue** (include links if applicable):
  
  - I am not sure if this you can replicate the issue. It is quite weird since 
it does not happen all the time.
  - I log in usually using the user-password.py -file. I have there the line:
  
  ('DracoBot', BotPassword('xxxx', 'yyyyyyyyyyyyyyyyyyyyyy'))
  
  - When loging in: I get the following answer:
  
  WARNING: No user is logged in on site wikisource:pl
  Logging in to wikisource:pl as DracoBot@DracoBot
  WARNING: API warning (main): Subscribe to the mediawiki-api-announce mailing 
list at 
https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/
 for notice of API deprecations and breaking changes. Use 
[[Special:ApiFeatureUsage]] to see usage of deprecated features by your 
application.
  WARNING: API warning (login): Fetching a token via "action=login" is 
deprecated. Use "action=query&meta=tokens&type=login" instead.
  ERROR: Received incorrect login token. Forcing re-login.
  Logged in on wikisource:pl as DracoBot.
  
  **What happens?**:
  When logged in this way I am able to do usual stuff like replacing text on 
pages, generate pages from file however often (not all the time) I cannot move 
the pages. (On PL Wikisource moving files does not require extended rights).
  When not using the user-password.py -file I am prompted to type my password 
and moving files happens without problems.
  The weird part is that the issue does not occur all the times - I was not 
able to find the pattern.
  
  ----
  
  The futile attempt to move a pages generates:
  
  WARNING: API error permissiondenied: You are not allowed to execute the 
action you have requested.
  Traceback (most recent call last):
    File "pwb.py", line 420, in <module>
      if not main():
    File "pwb.py", line 412, in main
      run_python_file(filename,
    File "pwb.py", line 112, in run_python_file
      exec(compile(source, filename, 'exec', dont_inherit=True),
    File "./scripts/movepages.py", line 260, in <module>
      main()
    File "./scripts/movepages.py", line 249, in main
      bot.moveOne(page, pair[1])
    File "./scripts/movepages.py", line 78, in moveOne
      page.move(
    File "/home/test/core_stable_24/core_stable/pywikibot/tools/_deprecate.py", 
line 404, in wrapper
      return obj(*__args, **__kw)
    File "/home/test/core_stable_24/core_stable/pywikibot/tools/_deprecate.py", 
line 487, in wrapper
      return obj(*new_args, **new_kwargs)
    File "/home/test/core_stable_24/core_stable/pywikibot/page/__init__.py", 
line 1730, in move
      return self.site.movepage(self, newtitle, reason,
    File "/home/test/core_stable_24/core_stable/pywikibot/site/_decorators.py", 
line 92, in callee
      return fn(self, *args, **kwargs)
    File "/home/test/core_stable_24/core_stable/pywikibot/site/_apisite.py", 
line 1907, in movepage
      result = req.submit()
    File "/home/test/core_stable_24/core_stable/pywikibot/data/api.py", line 
1868, in submit
      raise pywikibot.exceptions.APIError(**result['error'])
  pywikibot.exceptions.APIError: permissiondenied: You are not allowed to 
execute the action you have requested.
  [help: See https://pl.wikisource.org/w/api.php for API usage. Subscribe to 
the mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt;
 for notice of API deprecations and breaking changes.]
  CRITICAL: Exiting due to uncaught exception <class 
'pywikibot.exceptions.APIError'>
  
  **What should have happened instead?**:
  
  no warning when logging in
  the page should be moved
  
  **Software version** (skip for WMF-hosted wikis like Wikipedia):
  pywikibot login
  
  **Other information** (browser name/version, screenshots, etc.):

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

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

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

Reply via email to