MediaWiki's blocking code should normalize the four accepted strings denoting infinity to a single value before they are written to the logging table. One consequence is this:
https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=block&letitle=User:Quickcare123
https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=block&letitle=User:GothSpell
https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=block&letitle=User:Raunaqpvc
https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=block&letitle=User:Safetycardmaniceland
The API returns these values without normalization as the expiry parameter. Therefore I need to test against all four allowed values - "indefinite", "infinity", "infinite" and "never" - if I am looking in the block log for indefinite blocks. The workaround is to do the normalization in the API, but that still leaves Technical-Debt.