Page MenuHomePhabricator

redirect.py not tagging pages for speedy deletion
Closed, ResolvedPublic

Description

Hello. I've asked on #pywikibot IRC channel but got no response, so opening this task. Apologies for the inconvenience.

I am having troubles understanding this behaviour:

1pwb.py redirect br -family:wikipedia -lang:es -sdtemplate:"{{destruir|Bot: redirección rota}}" -pt:1 -delete
2Retrieving broken redirect special page...
3Retrieving 50 pages from wikipedia:es.
4
5
6>>> Alex Palou <<<
7Target page [[es:Álex Palou]] does not exist
8Redirect target [[Usuario:Álex Palou]] does not exist. Do you want to delete
9[[Alex Palou]]? ([y]es, [N]o, [a]ll, [q]uit): y
10No sysop in user-config.py, put page to speedy deletion.
11@@ -1 +0,0 @@
12- {{destruir|Bot: redirección rota}}
13
14Edit summary: Bot: redirige a una página borrada o que no existe
15Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit): y
16Page [[Alex Palou]] saved

The page (was) a broken redirect. It should tag it for deletion. Notwithstanding it won't do it (I had to manually tag it).

Any help would be welcome.

Thanks.

Related Objects

Event Timeline

Oh, I forgot:

pwb.py version
Pywikibot: [https] r-p-pywikibot-core (203a05c, g10579, 2019/01/06, 16:22:52, ok)
Release version: 3.1.dev0

Another example:

pwb.py redirect br -family:wikipedia -lang:es -delete -pt:1 -v
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]
Found 1 wikipedia:es processes running, including this one.
Found candidate wikidata:wikidata
Retrieving broken redirect special page...
Retrieving 50 pages from wikipedia:es.
WARNING: Page [[es:Alex Palou]] does not exist on wikipedia:es.
Working on 'Amigos y Rivales (Novela)'

>>> Amigos y Rivales (Novela) <<<
Redirect target [[Amigos y Rivales]] does not exist. Do you want to delete
[[Amigos y Rivales (Novela)]]? ([y]es, [N]o, [a]ll, [q]uit): y
No sysop in user-config.py, put page to speedy deletion.
@@ -1 +0,0 @@
- {{destruir|1=Bot: la página a la que ésta redirige no existe}}

Edit summary: Bot: redirige a una página borrada o que no existe
Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit): y
APISite("es", "wikipedia").login(False) called when a previous login was in progress.
Page [[Amigos y Rivales (Novela)]] saved without any changes.
Page [[Amigos y Rivales (Novela)]] saved
Xqt triaged this task as Medium priority.Jan 9 2019, 7:20 PM

There is something curious. The bot says:

C:\pwb\GIT\core>pwb.py redirect br -delete
Retrieving broken redirect special page...
Retrieving 3 pages from wikipedia:de.
WARNING: Page [[de:Benutzer:Pinolino25/vanicello]] does not exist on wikipedia:d
e.
WARNING: Page [[de:Benutzer:Trolleyfuchs/United Regions]] does not exist on wiki
pedia:de.


>>> Benutzer:Akela3 <<<
Redirect target [[Benutzer:Akela]] does not exist. Do you want to delete
[[Benutzer:Akela3]]? ([y]es, [N]o, [a]ll, [q]uit):

But redirect target [[Benutzer:Akela]] does exist.

But redirect target [[Benutzer:Akela]] does exist.

Sorry, I was wrong. The target page is on meta.

Change 483365 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix parameter order of userPut method

https://gerrit.wikimedia.org/r/483365

Change 483365 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix parameter order of userPut method

https://gerrit.wikimedia.org/r/483365

Thank you. I tested my bot manually this morning (my time) after the patch was deployed and it put the speedy deletion templates again. If I observe any strange behaviour again, I'll open a new task.