InteractionTimeline fails with error 400 when selecting an IP user
Just what it says on the tin:
Error example:
Error 400
username x.x.x.x could not be found
Xaosflux | |
Apr 6 2018, 1:09 AM |
F16867520: Screen Shot 2018-04-09 at 9.41.13 AM.png | |
Apr 9 2018, 4:42 PM |
F16867518: Screen Shot 2018-04-09 at 9.41.13 AM.png | |
Apr 9 2018, 4:41 PM |
InteractionTimeline fails with error 400 when selecting an IP user
Just what it says on the tin:
Error example:
Error 400
username x.x.x.x could not be found
It's because that IP address has no edits on testwiki... You can do the same thing with a known username:
https://tools.wmflabs.org/interaction-timeline/?wiki=testwiki&user=TBolliger%20(WMF)&user=Josh&startDate=1520640000
I tested with https://test.wikipedia.org/w/index.php?title=Candy&action=history
and a previous IP edit also shows the same error: https://tools.wmflabs.org/interaction-timeline/?wiki=testwiki&user=TBolliger%20(WMF)&user=198.73.209.3&startDate=1520640000
Yeah, the issue here is that we try to load the user id from the user name in the request. It obviously doesn't work for IP(s)
It should either be fixed to work with IP's, or fix the workflow to result in a graceful denial instead of a protocol error. I'd much prefer the former.
We want to support querying for IP address users. This is a regression from our work in T180653: Interaction Timeline V1: Support IP users
The bug is valid. This was an oversight on my end when working on performance improvements. It will work for IP(s).