Page MenuHomePhabricator

-user global argument ignored
Closed, InvalidPublic

Description

My user-config file has my user as the main account, I do the same with compat. With compat, if I did "-user:RileyBot" it would override the user-config and prompt me for the password. The same should be happening with core, but it is ignoring the global argument and defaulting to the user-config.

riley@ridley:~/pywikibot-core$ python pwb.py category.py move -from:'Files from the Asamblea Nacional del Ecuador Flickr stream (check needed)' -to:'Photographs by the National Assembly of Ecuador (check needed)' -user:RileyBot -dir:/home/riley/.pywiki -summary:'Moving [[Category:Files from the Asamblea Nacional del Ecuador Flickr stream (check needed)]] to [[Category:Photographs by the National Assembly of Ecuador (check needed)]]' -pt:0

WARNING: The category page target 'Category:Photographs by the National Assembly of Ecuador (check needed)' already exists.

Retrieving 50 pages from commons:commons.

Page [[File:23º Foro Parlamentario Asia Pacífico - Rueda de Prensa del Comité Ejecutivo (16282578545).jpg]] saved

Event Timeline

Works for me.

$ python scripts/category.py move -from:'Files from the Asamblea Nacional del Ecuador Flickr stream (check needed)' -to:'Photographs by the National Assembly of Ecuador (check needed)' -family:commons -lang:commons -user:test
Password for user Test on commons:commons (no characters will be shown):

Could you try with a username completely new to you?
Just to exclude cookies/password already stored, etc.?

What version are you using?

We had a bug in -user on master for about a month, fixed two weeks ago: T128318: -user global argument ignored breaks test suite

Xqt changed the task status from Open to Stalled.Aug 27 2016, 4:51 PM
Xqt triaged this task as Medium priority.
Xqt subscribed.

Is this bug still valid?