Last modified: 2014-02-12 23:53:22 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 T54049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52049 - Mobile editor silently fails when abusefilter is triggered
Mobile editor silently fails when abusefilter is triggered
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 19:24 UTC by Juliusz Gonera
Modified: 2014-02-12 23:53 UTC (History)
10 users (show)

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


Attachments
Request that triggered abusefilter (2.23 KB, text/plain)
2013-07-26 00:25 UTC, Juliusz Gonera
Details
Response from the abusefilter (1.80 KB, text/plain)
2013-07-26 00:26 UTC, Juliusz Gonera
Details
Response from the abusefilter (eswiki) (1.84 KB, application/json)
2013-07-26 00:41 UTC, Juliusz Gonera
Details

Description Juliusz Gonera 2013-07-25 19:24:28 UTC
Mobile editor fails if a given wiki uses abusefilter. An example is plwiki. I couldn't reproduce it all the times, but half of the times when trying to edit the API returned an abusefilter message saying that I was removing a lot of text (even though I was removing a single word) and the edit failed. It seemed that the second attempt would usually succeed.

Unfortunately, as it is now, when this happens the editor will show a success message and close, but will not save anything, making the user lose their changes.

This is similar to bug 52047, however the fix is not the same.
Comment 1 Juliusz Gonera 2013-07-26 00:25:09 UTC
Created attachment 12961 [details]
Request that triggered abusefilter

The edit was only adding a dot after the last sentence.
Comment 2 Juliusz Gonera 2013-07-26 00:26:33 UTC
Created attachment 12962 [details]
Response from the abusefilter

The message says that I removed a lot of text and if I'm sure what I'm doing. It tells me to hit Save again if I do.
Comment 3 Juliusz Gonera 2013-07-26 00:29:44 UTC
Trying to edit again (same edit, adding a dot), succeeds. This means that a possible solution would be to show the Save button again when we receive an abusefilter message. We need to show the message too, although it's tricky because it's in horrible HTML format (see attachment; should we just strip HTML?).
Comment 4 Juliusz Gonera 2013-07-26 00:41:36 UTC
Created attachment 12963 [details]
Response from the abusefilter (eswiki)

I've just run into that on eswiki too.
Comment 5 Alex Monk 2013-07-26 08:06:10 UTC
(In reply to comment #0)
> half of the times when trying to edit
> the API returned an abusefilter message saying that I was removing a lot of
> text (even though I was removing a single word) and the edit failed.

This might not be a mobile-specific problem - see bug 52077
Comment 6 Juliusz Gonera 2013-07-26 18:18:06 UTC
That may solve the problem of getting an abusefilter message about removing a lot of text when making small changes, but we still need to implement abusefilter messages on mobile.
Comment 7 Gerrit Notification Bot 2013-07-26 23:18:35 UTC
Change 76215 had a related patch set uploaded by JGonera:
Show error message on CAPTCHAs and extension errors

https://gerrit.wikimedia.org/r/76215
Comment 8 Gerrit Notification Bot 2013-07-27 15:57:24 UTC
Change 76215 merged by jenkins-bot:
Show error message on CAPTCHAs and extension errors

https://gerrit.wikimedia.org/r/76215
Comment 9 Juliusz Gonera 2013-07-29 00:04:01 UTC
I'm not sure if we should mark this fixed. This should still be implemented.
Comment 10 Gerrit Notification Bot 2013-07-29 21:59:53 UTC
Change 76633 had a related patch set uploaded by MaxSem:
Show error message on CAPTCHAs and extension errors

https://gerrit.wikimedia.org/r/76633
Comment 11 Gerrit Notification Bot 2013-07-29 22:02:02 UTC
Change 76633 merged by jenkins-bot:
Show error message on CAPTCHAs and extension errors

https://gerrit.wikimedia.org/r/76633
Comment 12 Michelle Grover 2013-07-29 22:26:25 UTC
Max deployed this today and I tested looks good.
Comment 13 Michelle Grover 2013-09-16 21:48:13 UTC
Max added additional error messaging but the issue still exists so reopening.
Comment 14 Jon 2013-10-08 23:36:44 UTC
Juliusz is working on this as part of story:
https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1269
Comment 15 Jon 2013-10-16 01:22:06 UTC
https://gerrit.wikimedia.org/r/88899
Comment 16 Gerrit Notification Bot 2013-10-16 21:26:09 UTC
Change 88899 had a related patch set uploaded by JGonera:
Story 1269: AbuseFilter support

https://gerrit.wikimedia.org/r/88899
Comment 17 Gerrit Notification Bot 2013-10-16 21:57:38 UTC
Change 88899 merged by jenkins-bot:
Story 1269: AbuseFilter support

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

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


Navigation
Links