-
Notifications
You must be signed in to change notification settings - Fork 393
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endpoint #2807
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
Open
JohnsonEricAtSalesforce
wants to merge
48
commits into
forcedotcom:dev
Choose a base branch
from
JohnsonEricAtSalesforce:bugfix/w-20161958_msdk-13.1-android-cannot-login-gus-using-welcome-endpoint_s1-13.1
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
e70cd30
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 7a8b818
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce a006c08
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce ed1466d
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce c9b2f83
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5859c8a
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 0866e4b
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5899f31
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 4c9cfb9
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce e59b289
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 1a0db42
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2901a42
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce fd1c55a
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 8aeb580
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5afb6d5
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce da3a8d8
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce c896421
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 095f007
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 26996ec
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5e9367a
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2b532b6
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 6b54d4f
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 7668eb4
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 8306fbe
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 49e49aa
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 8fd1964
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 29e5671
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2d97f2c
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce ad50bfb
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce c02c281
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce cdf3f6d
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 84d7f76
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2308dbc
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce e0460e5
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce d20b0a3
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2029d81
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce d9c0cf5
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 4ce2e8a
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 2c21ab3
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 75e87df
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5ce0393
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 8b20336
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 5e191a1
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 6588ef4
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 68c730c
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 9c2b40d
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 8713956
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce 82e7b98
@W-20161958: [MSDK 13.1][Android] Cannot login GUS using Welcome endp…
JohnsonEricAtSalesforce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
280 changes: 181 additions & 99 deletions
280
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/LoginActivity.kt
Large diffs are not rendered by default.
Oops, something went wrong.
239 changes: 200 additions & 39 deletions
239
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/LoginViewModel.kt
Large diffs are not rendered by default.
Oops, something went wrong.
520 changes: 488 additions & 32 deletions
520
libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/auth/LoginViewModelTest.kt
Large diffs are not rendered by default.
Oops, something went wrong.
395 changes: 395 additions & 0 deletions
395
libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/ui/LoginActivityScenarioTest.kt
Large diffs are not rendered by default.
Oops, something went wrong.
311 changes: 142 additions & 169 deletions
311
libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/ui/LoginActivityTest.kt
Large diffs are not rendered by default.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This has been an issue for some time. The constructor has blocked nulls but the nullability of the backing fields was never updated. This improves the tests on this pull request greatly plus it probably should have been done for integrity long ago.
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.
Is there any way the app could still have a null name that was entered prior to MSDK 13.0?
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.
The app would have to be doing something very deliberate to achieve that plus ignoring the non-null constructor parameters. Interestingly, an AI analysis also notes that since URL and name are treated as non-null in a lot of code throughout MSDK, they'd already be triggering null pointer exceptions in many places. Take a look at the number of non-null safe calls to "trim" there are on "name".
So, this looks like a real win to help prevent future NPEs.