-
Notifications
You must be signed in to change notification settings - Fork 356
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
fix: canonicalize master urls shim code #8919
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8919 +/- ##
==========================================
- Coverage 48.42% 44.48% -3.94%
==========================================
Files 743 715 -28
Lines 136157 134422 -1735
Branches 2235 2236 +1
==========================================
- Hits 65929 59804 -6125
- Misses 70070 74460 +4390
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Since we are now stricter about what is a valid master_url (rejecting some silly things like usernames or fragments that make no sense in the url), we must take special care when reading auth.json written by old versions of our code. Without this fix, users who mistakenly logged in in the past with DET_USER=http://user@mymaster would have a broken CLI because the shim code would puke every time it tried to upgrade auth.json from v1 to v2.
4a84dac
to
befeda7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
only failures look like known flakes, I'm force-landing this. |
Since we are now stricter about what is a valid master_url (rejecting some silly things like usernames or fragments that make no sense in the url), we must take special care when reading auth.json written by old versions of our code. Without this fix, users who mistakenly logged in in the past with DET_USER=http://user@mymaster would have a broken CLI because the shim code would puke every time it tried to upgrade auth.json from v1 to v2. (cherry picked from commit 3a3b668)
Since we are now stricter about what is a valid master_url (rejecting some silly things like usernames or fragments that make no sense in the url), we must take special care when reading auth.json written by old versions of our code. Without this fix, users who mistakenly logged in in the past with DET_USER=http://user@mymaster would have a broken CLI because the shim code would puke every time it tried to upgrade auth.json from v1 to v2.
Since we are now stricter about what is a valid master_url (rejecting some silly things like usernames or fragments that make no sense in the url), we must take special care when reading auth.json written by old versions of our code.
Without this fix, users who mistakenly logged in in the past with
would have a broken CLI because the shim code would puke every time it tried to upgrade auth.json from v1 to v2.