-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mysql] Make the userid column a BIGINT #470
Labels
2
Estimate - s - This is a small change with clearly defined parameters.
bug
Something isn't working
good first bug
Low priority, but valuable contributions
Comments
pjenvey
added
bug
Something isn't working
2
Estimate - s - This is a small change with clearly defined parameters.
good first bug
Low priority, but valuable contributions
labels
Mar 6, 2020
Hi @pjenvey, this sounds like a good first issue. I'd love to give it a shot. I'll take a look at the codebase and then give you an update. |
Hey @Emmanuel-Melon, are you working on this one? I'd like to give it a try 🙂 |
Yes, I'm. I'm making a PR this week.
…On Wednesday, March 18, 2020, None ***@***.***> wrote:
Hey @Emmanuel-Melon <https://github.com/Emmanuel-Melon>, are you working
on this one? I'd like to give it a try 🙂
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#470 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAKVJE2OTPUXJL3Y6N27CDRH7Y2NANCNFSM4LDJKMOA>
.
|
Emmanuel-Melon
added a commit
to Emmanuel-Melon/syncstorage-rs
that referenced
this issue
Apr 3, 2020
The MySQL schema defines userid columns as 32 bit integers inteded for use by the token server which expects 64 bit integers. This change creates a new migration to convert the columns and to modify the `src/db/mysql/schema.rs` to reflect those changes. Closes mozilla-services#470
Emmanuel-Melon
added a commit
to Emmanuel-Melon/syncstorage-rs
that referenced
this issue
Apr 3, 2020
The MySQL schema defines userid columns as 32 bit integers inteded for use by the token server which expects 64 bit integers. This change creates a new migration to convert the columns and to modify the `src/db/mysql/schema.rs` to reflect those changes. Closes mozilla-services#470
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2
Estimate - s - This is a small change with clearly defined parameters.
bug
Something isn't working
good first bug
Low priority, but valuable contributions
The mysql schema defines the
userid
column in all tables as a regular 32 bitINT
. This is incorrect: the userid is handed to syncstorage-rs via an auth token by the tokenserver, which uses a 64 bitBIGINT
.syncstorage-rs correctly parses the auth token into the
HawkIdentifier
struct, w/ userid (HawkIdentifier refers to it aslegacy_id
) being 64 bits.The mysql db code then casts
legacy_id
down to the a u32 (which truncates!) per the column type.We need to:
BIGINT
legacy_id
's u64 type toi64
which diesel expects forBIGINT
s)(This bug extracted from the original #74)
The text was updated successfully, but these errors were encountered: