Page MenuHomePhabricator

Mobile suppression of filter log entries does not work
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • Go to someone's list of filter log entries on mobile website
  • Select a log entry and click "change visibility of selected entries"

What happens?:

  • Log entry is struck out, but does not actually get suppressed

What should have happened instead?:

  • Log entry should have been suppressed
  • When doing this on desktop, it gives a green box confirming the suppression

Other information:

  • Issue also occurs when you open up the "details" of a single log entry and change visibility from there
  • Issue is the same both on an actual mobile using the mobile site and on a desktop device using the mobile site
  • Issue does not exist when on a mobile device using the desktop site
  • Issue does not exist for "regular" log entries

Event Timeline

I can reproduce this on enwiki. It seems to be any state change. For example, if I was to unhide something it doesn't actually apply until I was to try using the desktop form.

It also seems to convert the view I'm using to desktop view.

I've worked out why this happens (I think). This is because HideAbuseLog::show sets the action URL for the form as a URL for the desktop version of the site (i.e. en.m.wikipedia.org vs en.wikipedia.org). This explains why I could not re-produce it locally and why when I submitted the form on enwiki on mobile it would take me back to desktop view.

Relevant code is at https://gerrit.wikimedia.org/g/mediawiki/extensions/AbuseFilter/+/947e437566391eb174e0c3d43da138150fd2a5ff/includes/View/HideAbuseLog.php#116

This should be fixable by changing ::getFullUrl to ::getLocalUrl, but I don't have the time to investigate further.

Change 991909 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/AbuseFilter@master] Use ::getLocalUrl instead of ::getFullUrl for HideAbuseLog form

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

Change 991909 merged by jenkins-bot:

[mediawiki/extensions/AbuseFilter@master] Use ::getLocalUrl instead of ::getFullUrl for HideAbuseLog form

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