Page MenuHomePhabricator

warning message on article deletion / article moving is not parsed
Closed, ResolvedPublic

Description

Warning message on article deletion / article moving is not parsed. This results in showing plain wikitext like "'''Warning''': blah blah blah" instead of text in which all wiki-markups are parsed.

I know that it is intended to be like this because the hook "AbortMove" shows text like "You do not have permission to move this page, for the following reason:". Therefore, the text follows it should be the reason, which would be plain text.

However, this just doesn't fit with the purpose of Abusefilter. The moving is aborted not because users don't have permission, but because of abusefilter. Therefore, "You do not have permission to move this page, for the following reason:" should not be displayed, and the warning message should be displayed like message shown in onAPIEditBeforeSave(); that is, it should be parsed.

Details

Reference
bz63768

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:12 AM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz63768.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 15112
screenshot of the issue at Commons

Attached:

abusefilter_message_not_parsed_on_page_move.png (832×1 px, 62 KB)

No, Amire80, this is not about i18n. It's about wiki markup parsing.

Daimona subscribed.

Status of this bug right now: the message is actually parsed, so templates and wikisyntax are correct, though we still have the "You do not have permission to move this page, for the following reason:" message. However, this is actually intended (more or less): to filter "move" actions we use the MovePageCheckPermissions hook, which is indeed intended to check for user permissions. So actually we would need to change the used hook, but is there one which is suitable for our case?

Daimona claimed this task.

The original problem is gone, while for having a cleaner message there's T199622