assertuserfailed : something changed ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

assertuserfailed : something changed ?

Nicolas Vervelle-4
Hi,

Yesterday, a user reported having problem with my tool, WPCleaner, getting error messages "assertuserfailed - Assertion that the user is logged in failed" when trying to save pages.
I also got them a few minutes ago, restarted the tool, and the problem was gone.

Has there been any modification on the API or MW that can explain this error message ?
I'm pretty sure I haven't changed anything in the way I use the API, so I'm wondering what's the cause.

Nico


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: assertuserfailed : something changed ?

Legoktm
On Wed, Mar 5, 2014 at 3:07 PM, Nicolas Vervelle <[hidden email]> wrote:

> Hi,
>
> Yesterday, a user reported having problem with my tool, WPCleaner, getting
> error messages "assertuserfailed - Assertion that the user is logged in
> failed" when trying to save pages.
> I also got them a few minutes ago, restarted the tool, and the problem was
> gone.
>
> Has there been any modification on the API or MW that can explain this error
> message ?

Yes, the handling of assert= in MediaWiki had changed a while back.
<http://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-January/000049.html>
was the announcement that was sent out and explains what changed.

-- Legoktm

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: assertuserfailed : something changed ?

Nicolas Vervelle-4
Thanks for the link,

If I read correctly the link, that shouldn't result in more error messages thrown than failures to edit before.
But I have now 2 users and myself (a second time right now) getting this error when using WPCleaner.
Sometimes, when I restart and log in again, it starts to work.
I'm pretty sure I haven't changed anything on my side about this.

Below is the entire list of calls made by my tool before receiving the error (connection info are removed from logs).
Is there anything wrong in the calls ? Is there a bug in the new AssertEdit ?

Nico

GET  <a href="https://fr.wikipedia.org/w/api.php?usprop=groups|rights&amp;action=query&amp;ususers=WikiCleanerBot&amp;list=users&amp;format=xml">https://fr.wikipedia.org/w/api.php?usprop=groups|rights&action=query&ususers=WikiCleanerBot&list=users&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?siprop=general|namespaces|namespacealiases|languages|interwikimap|magicwords&amp;action=query&amp;format=xml&amp;meta=siteinfo">https://fr.wikipedia.org/w/api.php?siprop=general|namespaces|namespacealiases|languages|interwikimap|magicwords&action=query&format=xml&meta=siteinfo
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Utilisateur:NicoV/WikiCleanerConfiguration|Utilisateur:WikiCleanerBot/WikiCleanerConfiguration&amp;format=xml">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Utilisateur:NicoV/WikiCleanerConfiguration|Utilisateur:WikiCleanerBot/WikiCleanerConfiguration&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Projet:Correction">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Projet:Correction syntaxique/Traduction&format=xml
GET  https://fr.wikipedia.org/w/api.php?pllimit=max&prop=links&action=query&titles=Projet:Correction syntaxique/Erreur syntaxique 034/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 077/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 059/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 012/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 048/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 069/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 058/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 040/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 002/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 047/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 027/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 046/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 056/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 003/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 038/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 037/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 039/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 060/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 090/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 032/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 010/Liste blanche&format=xml
GET  https://fr.wikipedia.org/w/api.php?pllimit=max&prop=links&action=query&titles=Projet:Correction syntaxique/Erreur syntaxique 067/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 026/Liste blanche|Projet:Correction syntaxique/Erreur syntaxique 044/Liste blanche&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Imperial">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Imperial College London&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Inde">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Inde aux Jeux olympiques d'été de 2012&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Jimmy">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Jimmy Crack Corn (chanson d'Eminem)&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Kia">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Kia Sportage&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Kyzylkumite&amp;format=xml">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Kyzylkumite&format=xml
GET  <a href="https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&amp;inprop=protection&amp;prop=revisions|info&amp;action=query&amp;titles=Laine">https://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Laine de verre&format=xml
POST <a href="https://fr.wikipedia.org/w/api.php?summary=[[WP:WPC|WPCleaner]]">https://fr.wikipedia.org/w/api.php?summary=[[WP:WPC|WPCleaner]] v1.31 - Balise <sup> mal fermée - Orthographe et typographie ([[P:CS|Correction syntaxique]])&watchlist=nochange&title=Laine de verre&text={{à sourcer|date=novembre 2010}}...&basetimestamp=2014-02-11T19:55:09Z&token=+\&minor=&bot=&action=edit&assert=user&format=xml
Mar 6, 2014 7:30:27 AM org.wikipediacleaner.api.impl.MediaWikiAPI checkForError
WARNING: Error reported: assertuserfailed - Assertion that the user is logged in failed
POST <a href="https://fr.wikipedia.org/w/api.php?summary=[[WP:WPC|WPCleaner]]">https://fr.wikipedia.org/w/api.php?summary=[[WP:WPC|WPCleaner]] v1.31 - Balise <sup> mal fermée - Orthographe et typographie ([[P:CS|Correction syntaxique]])&watchlist=nochange&title=Laine de verre&text={{à sourcer|date=novembre 2010}}...&basetimestamp=2014-02-11T19:55:09Z&token=+\&minor=&bot=&action=edit&assert=user&format=xml
Mar 6, 2014 7:30:27 AM org.wikipediacleaner.api.impl.MediaWikiAPI checkForError
WARNING: Error reported: assertuserfailed - Assertion that the user is logged in failed



On Thu, Mar 6, 2014 at 12:12 AM, legoktm <[hidden email]> wrote:
On Wed, Mar 5, 2014 at 3:07 PM, Nicolas Vervelle <[hidden email]> wrote:
> Hi,
>
> Yesterday, a user reported having problem with my tool, WPCleaner, getting
> error messages "assertuserfailed - Assertion that the user is logged in
> failed" when trying to save pages.
> I also got them a few minutes ago, restarted the tool, and the problem was
> gone.
>
> Has there been any modification on the API or MW that can explain this error
> message ?

Yes, the handling of assert= in MediaWiki had changed a while back.
<http://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-January/000049.html>
was the announcement that was sent out and explains what changed.

-- Legoktm

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: assertuserfailed : something changed ?

Brad Jorsch (Anomie)
I suspect this may be https://bugzilla.wikimedia.org/show_bug.cgi?id=62288

The change causing that has been reverted, so your tool may be working now.


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: assertuserfailed : something changed ?

Magnus Manske-2
Could that be the reason for my current OAuth issue?

https://bugzilla.wikimedia.org/show_bug.cgi?id=62312


On Thu, Mar 6, 2014 at 12:22 PM, Brad Jorsch (Anomie) <[hidden email]> wrote:
I suspect this may be https://bugzilla.wikimedia.org/show_bug.cgi?id=62288

The change causing that has been reverted, so your tool may be working now.


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api




--
undefined

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: assertuserfailed : something changed ?

Brad Jorsch (Anomie)
On Thu, Mar 6, 2014 at 7:32 AM, Magnus Manske <[hidden email]> wrote:
Could that be the reason for my current OAuth issue?

https://bugzilla.wikimedia.org/show_bug.cgi?id=62312

I've already replied on the bug, but no, that's a different issue.


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api