Steps to replicate the issue (include links if applicable):
What happens?:
Observe that the first item in the globalblocks array is an empty array instead of an object.
What should have happened instead?:
There should be no empty array there.
| Count_Count | |
| Aug 26 2024, 5:53 AM |
| F57353100: image.png | |
| Aug 30 2024, 5:29 AM |
Steps to replicate the issue (include links if applicable):
What happens?:
Observe that the first item in the globalblocks array is an empty array instead of an object.
What should have happened instead?:
There should be no empty array there.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Mark globalblocks query results as associated | mediawiki/extensions/GlobalBlocking | master | +3 -1 |
The example block mentioned above has ID 3260612.
I did a query on Toolforge replica DBs and it seems that the block is for a user but not a IP address/range.
Therefore, the IP ranges are not available and not added: https://gerrit.wikimedia.org/g/mediawiki/extensions/GlobalBlocking/+/5e4bb5e1b2c61b58ef9950e31d599dac707e4e66/includes/Api/ApiQueryGlobalBlocks.php#220.
However I think the empty array should be serialized as a JSON object but not an array.
Change #1066588 had a related patch set uploaded (by XtexChooser; author: XtexChooser):
[mediawiki/extensions/GlobalBlocking@master] Mark globalblocks query results as associated
Change #1066588 merged by jenkins-bot:
[mediawiki/extensions/GlobalBlocking@master] Mark globalblocks query results as associated