Last modified: 2013-07-19 20:28:23 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 T52472, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50472 - VisualEditor: Show the warning of a triggered AbuseFilter filter in the save dialog
VisualEditor: Show the warning of a triggered AbuseFilter filter in the save ...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: High major
: VE-deploy-2013-07-18
Assigned To: Krinkle
:
: 50719 50727 50828 (view as bug list)
Depends on: 32216 50350 51403
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-30 18:57 UTC by James Forrester
Modified: 2013-07-19 20:28 UTC (History)
11 users (show)

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


Attachments

Description James Forrester 2013-06-30 18:57:46 UTC
[Forked from the more general 50350.]

Currently when AbuseFilter blocks an edit made with VE, the only response we can display is:

| The modification you tried to make was aborted by an extension hook

When bug 32216 is done - AbuseFilter is changed to use the APIEditBeforeSave hook - we can display this significantly more nicely.
Comment 1 James Forrester 2013-07-04 07:00:40 UTC
*** Bug 50719 has been marked as a duplicate of this bug. ***
Comment 2 kwwilliams 2013-07-04 15:34:51 UTC
I strongly, strongly object to the categorization of this as an "enhancement". This is a basic feature that needs to be addressed. There aren't many edit filters that block edits, but when an editor trips one of the ones that does, its important that he have an idea as to what to fix. There's no place for an editor to even begin looking to find out what is happening and what it is about his edit that is causing it to fail. It's not really even obvious from the message that it's a content issue.
Comment 3 James Forrester 2013-07-04 15:40:30 UTC
(In reply to comment #2)
> I strongly, strongly object to the categorization of this as an
> "enhancement".

"Enhancement" does not mean "not going to be done soon"; it merely means that this is not a feature that's meant to be currently working, but instead, a feature we'd like to add.

This feature in particular is on our immediate work list, and hopefully will be done in the next week or so.
Comment 4 Jesús Martínez Novo (Ciencia Al Poder) 2013-07-05 19:58:19 UTC
*** Bug 50828 has been marked as a duplicate of this bug. ***
Comment 5 kwwilliams 2013-07-09 15:54:18 UTC
Has this actually been deployed? I just tested, and the error message has changed (it now reads "invalid error code", while it used to read "Error: the notification you have made was aborted by an extension hook"). If that was the fix, I think it's pretty obvious that it's incomplete, as it still isn't displaying the warning from the edit filter.
Comment 6 James Forrester 2013-07-09 20:18:17 UTC
(In reply to comment #5)
> Has this actually been deployed?

No.

> I just tested, and the error message has changed (it now reads "invalid
> error code", while it used to read "Error: the notification you have made
> was aborted by an extension hook").

That's almost certainly caused by the "fixing" of bug 32216, which changes what we need to integrate with.
Comment 7 James Forrester 2013-07-10 22:25:05 UTC
*** Bug 51139 has been marked as a duplicate of this bug. ***
Comment 8 Gerrit Notification Bot 2013-07-15 22:11:06 UTC
Change 73877 had a related patch set uploaded by Krinkle:
mw.ViewPageTarget: Surface error messages from core edit api

https://gerrit.wikimedia.org/r/73877
Comment 9 Krinkle 2013-07-15 22:12:01 UTC
(In reply to comment #8)
> Change 73877 had a related patch set uploaded by Krinkle:
> mw.ViewPageTarget: Surface error messages from core edit api
> 
> https://gerrit.wikimedia.org/r/73877

This is not yet sufficient since we should be surfacing the
warning associated with the filter (or the abusefilter-warning
message by default). The most significant part we're missing
right now is:
* Localization
* The fact that (at least for some filters) they can submit
  the edit by just trying again.

This is currently blocked by the AbuseFilter not sending the parsed version of the triggered warning through the API (see http://cl.ly/image/1E2r1J2U3K0v, I'm getting raw wikitext instead of HTML).

And perhaps (though less important) we could also use a boolean property to distinguish between filters that are warnings that can be bypassed by trying again and filters which prevent the user from saving.
Comment 10 kwwilliams 2013-07-15 22:21:06 UTC
Just in case it's important to the fix, the message returned by the abuse filter is free format and generally contains templates and other markup.
Comment 11 Gerrit Notification Bot 2013-07-15 22:30:36 UTC
Change 73877 merged by jenkins-bot:
mw.ViewPageTarget: Surface error messages from core edit api

https://gerrit.wikimedia.org/r/73877
Comment 12 James Forrester 2013-07-15 22:43:54 UTC
Marked as blocked by 51403 in AbuseFilter.
Comment 13 Gerrit Notification Bot 2013-07-17 01:11:56 UTC
Change 74102 had a related patch set uploaded by Krinkle:
mw.ViewPageTarget: Show AbuseFilter warning in save dialog

https://gerrit.wikimedia.org/r/74102
Comment 14 Gerrit Notification Bot 2013-07-17 19:05:34 UTC
Change 74102 merged by jenkins-bot:
mw.ViewPageTarget: Show AbuseFilter warning in save dialog

https://gerrit.wikimedia.org/r/74102
Comment 15 James Forrester 2013-07-17 19:47:24 UTC
Warnings will now show (once we deploy).
Comment 16 James Forrester 2013-07-18 01:52:22 UTC
*** Bug 50727 has been marked as a duplicate of this bug. ***
Comment 17 John Mark Vandenberg 2013-07-18 22:16:15 UTC
enhancement->major, as this is an integration bug.
Comment 18 kwwilliams 2013-07-19 20:11:44 UTC
Tested this, now that it is deployed, and have to say that while it the change came close to being a solution, it isn't quite there. The edit-filter notice produced when using the standard editor is large, easy to read, and quite clear. The edit-filter noticed produced when using VE is tiny, uses an infinitesimal font, and is extremely difficult to read.
Comment 19 Oliver Keyes 2013-07-19 20:13:13 UTC
Are you, by any chance, on monobook?
Comment 20 kwwilliams 2013-07-19 20:25:56 UTC
Of course I use Monobook, Oliver.
Comment 21 Oliver Keyes 2013-07-19 20:28:23 UTC
Then I suspect the problem is an extension of bug 50058, which will be fixed in time. If so, it's probably not worth prioritising as a new bug (or reopening this one) since abusefilter triggerers are likely to be new users, ergo on vector.

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


Navigation
Links