Page MenuHomePhabricator

Request to API:Blocks on MobileFrontend has empty bkusers which returns a list of unrelated blocks
Closed, ResolvedPublic

Description

When you are logged out, and you attempt to edit a page, you'll get a prompt to login, if you choose to edit without logging it, your browser will make a request like this:
https://en.m.wikipedia.org/w/api.php?action=query&format=json&prop=revisions&rvprop=content%7Ctimestamp&titles=Gotham&meta=userinfo&uiprop=blockinfo&list=blocks&bkusers=&bkprop=flags&formatversion=2&rvsection=0

The request is missing any bkusers (notice bkusers=&) which means a list of unrelated blocks are returned. We should ensure that bkusers is populated before making a request to API:Blocks

Event Timeline

dbarratt renamed this task from Request to API:Blocks on MobileFront has empty bkusers which returns a list of unrelated blocks to Request to API:Blocks on MobileFrontend has empty bkusers which returns a list of unrelated blocks.May 12 2018, 2:55 PM

Maybe it is easier to include the flags in meta=userinfo (needs another task), then the extra list=blocks is not needed. But requesting empty user is treated as unset parameter and returns any blocks in that wiki.

Maybe it is easier to include the flags in meta=userinfo (needs another task), then the extra list=blocks is not needed. But requesting empty user is treated as unset parameter and returns any blocks in that wiki.

Yeah I was wondering if it would be better just to do T194585 instead.

Vvjjkkii renamed this task from Request to API:Blocks on MobileFrontend has empty bkusers which returns a list of unrelated blocks to h2caaaaaaa.Jul 1 2018, 1:10 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Wong128hk renamed this task from h2caaaaaaa to Request to API:Blocks on MobileFrontend has empty bkusers which returns a list of unrelated blocks.Jul 1 2018, 2:45 AM
Wong128hk raised the priority of this task from High to Needs Triage.
Wong128hk updated the task description. (Show Details)
Wong128hk added a subscriber: Aklapper.