-
Notifications
You must be signed in to change notification settings - Fork 37
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
Xmlrpc login errors. #2280
Xmlrpc login errors. #2280
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
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.
Looks good to me! No issues when testing with wpandroid client.
@@ -14,6 +15,23 @@ public static SiteError genericToSiteError(BaseNetworkError error) { | |||
break; | |||
} | |||
} | |||
return new SiteError(errorType, error.message); | |||
|
|||
SiteError siteError = new SiteError(errorType, error.message); |
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.
A very minor NP - maybe we can avoid a double initialization of siteError
here? If it makes sense :)
Looks like there are no changes since my review, so good to go :) |
IMPORTANT: this is ready to be reviewed; but since it has implications for Woo as well, keeping it as a draft so it is not accidentally merged before the validation from WPAndroid and WooAndroid point of view.
This is part of 12401 issue.
I tried to keep the current behaviors not affected, only adding a couple of enums mapping the various errors conditions for xml-rpc, that are used/parsed only in the login flow for self-hosted for now. This should reduce the possibility of regressions but appreciate testing of the various log-in/sign-up scenarios 🙇 .
See the companion WPMobile PR for more details.