Last modified: 2008-09-05 15:17:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17486, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15486 - autoblock parameter not working with action=block
autoblock parameter not working with action=block
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-05 10:42 UTC by Michael Holzt
Modified: 2008-09-05 15:17 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael Holzt 2008-09-05 10:42:59 UTC
It seems that the autoblock parameter in block requests does not work, at least not on german wikinews. I've sniffed my request and the autoblock parameter is clearly contained, but the resulting block always has autoblock deactivated.
Comment 1 Roan Kattouw 2008-09-05 14:44:27 UTC
Does the API result have the autoblock flag set? As in

<block user="Bob" userID="147" expiry="20070906231113" reason="Time out" nocreate="" noemail="" autoblock="" />
Comment 2 Michael Holzt 2008-09-05 14:51:30 UTC
Yes it has:

<block user="Kju (Test)" userID="2872" expiry="2008-09-05T15:48:41Z" reason="Test fuer Debugging durch Entwickler" nocreate="" autoblock="" />

But: 

16:48 <@rc> [[Spezial:Log/block]] block  * Kju *  sperrte »[[Benutzer:Kju (Test)]]« 
            für den Zeitraum: 1 Stunde (Erstellung von Benutzerkonten gesperrt, 
            Autoblock deaktiviert): Test fuer Debugging durch Entwickler
............^^^^^^^^^^^^^^^^^^^^^ (Autoblock deactivated)

One question unrelated to the problem: I notice that you have another format for the date time in your example. Is that configurable in the api request?
Comment 3 Roan Kattouw 2008-09-05 14:53:55 UTC
(In reply to comment #2)
> Yes it has:
> 
> <block user="Kju (Test)" userID="2872" expiry="2008-09-05T15:48:41Z"
> reason="Test fuer Debugging durch Entwickler" nocreate="" autoblock="" />
> 
> But: 
> 
> 16:48 <@rc> [[Spezial:Log/block]] block  * Kju *  sperrte »[[Benutzer:Kju
> (Test)]]« 
>             für den Zeitraum: 1 Stunde (Erstellung von Benutzerkonten
> gesperrt, 
>             Autoblock deaktiviert): Test fuer Debugging durch Entwickler
> ............^^^^^^^^^^^^^^^^^^^^^ (Autoblock deactivated)
My guess would be that you're not allowed to autoblock people then. I'll look into the block code.

> One question unrelated to the problem: I notice that you have another format
> for the date time in your example. Is that configurable in the api request?
> 
No, that's a bug. All API modules now use the ISO 8601 (2008-09-05T15:48:41Z) format.
Comment 4 Michael Holzt 2008-09-05 14:57:44 UTC
When using the webinterface i am certainly allowed to autoblock people:

16:56 <@rc> [[Spezial:Log/block]] block  * Kju *  sperrte »[[Benutzer:Kju (Test)]]« 
            für den Zeitraum: 1min (Erstellung von Benutzerkonten gesperrt): manueller 
            test
Comment 5 Roan Kattouw 2008-09-05 15:00:43 UTC
(In reply to comment #4)
> When using the webinterface i am certainly allowed to autoblock people:
> 
> 16:56 <@rc> [[Spezial:Log/block]] block  * Kju *  sperrte »[[Benutzer:Kju
> (Test)]]« 
>             für den Zeitraum: 1min (Erstellung von Benutzerkonten gesperrt):
> manueller 
>             test
> 
On which wiki is this?
Comment 6 Michael Holzt 2008-09-05 15:03:52 UTC
(In reply to comment #5)
> On which wiki is this?

dewikinews
Comment 7 Roan Kattouw 2008-09-05 15:06:11 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > On which wiki is this?
> 
> dewikinews
> 
It turns out not to matter, as it was caused by misspelling "Autoblock" as "AutoBlock" in the API. Fixed in r40494.
Comment 8 Michael Holzt 2008-09-05 15:17:04 UTC
I just want to thank you and state that i'm really impressed that you fixed the three bugs discovered by me (one yesterday, two today) in virtually no time. Thanks for the good work and thanks for making the API finally usable for all tasks script writers might need.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links