Skip to content
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

Improve error messages when logging into self-hosted sites #17724

Merged
merged 3 commits into from
Jan 18, 2022

Conversation

twstokes
Copy link
Contributor

@twstokes twstokes commented Jan 6, 2022

Fixes #17119

Related PRs:

To test:

On a self-hosted site install the attached plugin (XML-RPC Tweak) which will aid in testing: xml-rpc-tweak.zip

Some steps will require the tester to log in using an invalid username and or password. This is only to overcome a limitation with how the plugin simulates certain failures.

Test 1:

  1. Set XML-RPC Tweak to Mode 1
  2. Log in to the self-hosted site
  3. Observe error "XML-RPC services are disabled on this site."
Before After
Mode 1 - Before Mode 1

Test 2:

  1. Set XML-RPC Tweak to Mode 2
  2. Log in to the self-hosted site with an invalid username / password
  3. Observe error "Unable to read the WordPress site at that URL. Tap 'Need Help?' to view the FAQ."
Before After
Mode 2 - Before Mode 2 and 4

Test 3:

  1. Set XML-RPC Tweak to Mode 3
  2. Log in to the self-hosted site with an invalid username / password
  3. Observe error "There was a problem communicating with the site. An HTTP error code 401 was returned."
Before After
Mode 3 - Before Mode 3

Test 4:

  1. Set XML-RPC Tweak to Mode 4
  2. Log in to the self-hosted site
  3. Observe error "Unable to read the WordPress site at that URL. Tap 'Need Help?' to view the FAQ."
Before After (no change)
Mode 4 - Before Mode 2 and 4

Regression Notes

  1. Potential unintended areas of impact
  • Regression in error messages when logging into self-hosted sites
  1. What I did to test those areas of impact (or what existing automated tests I relied on)
  • Executed the testing steps above.
  1. What automated tests I added (or what prevented me from doing so)
  • None.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 6, 2022

You can trigger an installable build for these changes by visiting CircleCI here.

@twstokes twstokes changed the title Point to WordPressKit and WordPressAuthenticator commits. Improve error messages when logging into self-hosted sites Jan 6, 2022
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 6, 2022

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

Copy link
Contributor

@guarani guarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working great! I also tested with the plugin set to "Off" mode and login to a self-hosted site worked as normal.

Code changes look good too! :shipit:

@twstokes twstokes force-pushed the feature/xml-rpc-errors branch from e7153a1 to 0f655c7 Compare January 18, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login: improve wording for the error "The operation couldn't be completed"
2 participants