user:id in sentry does not correspond to user in psql db (because bigint -> text -> int casting overflow) #2040
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
question
Further information is requested
Logging user.id (number) does not always correspond to psql user id (bigint).
I noticed in sentry there was an error with
user:id 315318734258499200
. I queried the db for that user and got no results. Then I noticed the last two digits of thatuser:id
were00
, a hint there might be an overflow.It looks like it's because of these parseInt:
I introduced them :/ when I added tsc typechecking and it complained about passing a string user.id to
Logging#setUser
Plan
setUser
to expect a string user id instead of a numberThe text was updated successfully, but these errors were encountered: