WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Jetpack: Can't install Jetpack when self-hosted password is changed

Open rachelmcr opened this issue 8 years ago • 6 comments

Expected behavior

I expect that the manual installation flow implemented in https://github.com/wordpress-mobile/WordPress-Android/pull/8426 will allow me to manually install Jetpack if the remote install fails because of invalid credentials.

Actual behavior

If I change my self-hosted account password after adding the site to the app, the Jetpack install fails and I end up on a blank screen where I can't proceed.

Steps to reproduce the behavior

  1. Set up a self-hosted site without Jetpack.
  2. Add the self-hosted site to the app.
  3. Change the account password on the self-hosted site (in the web dashboard).
  4. In the app, go to Stats.
  5. Select "Install Jetpack."
  6. Select "Continue."

Result: I see the "Installing Jetpack" screen, and then a webview loads with the beginning of the web flow for Jetpack install, but it quickly ends up on a blank screen:

screenshot_20181025-113606

Tested on Moto E5 Play, Android 8.1.0, WPAndroid alpha-133

cc @planarvoid

rachelmcr avatar Oct 25 '18 10:10 rachelmcr

I also ran into this same behavior when the site returned a FORBIDDEN error because my user was an editor (not an administrator) on the site.

rachelmcr avatar Oct 25 '18 11:10 rachelmcr

I am not able to reproduce this with WPAndroid alpha-133. I see a proper failure notice on the core WordPress login view (as a part of the Jetpack installation flow)

screenshot_20181030-230219

Image indicating the login failure on the Jetpack installation flow, after changing the password on the web dashboard for the admin account

This is with the master admin (first admin) on the self-hosted WordPress (WordPress.org) site.

Rest of the flow

On going through the rest of the flow, the mobile view of the site shows up instead. The rest of the flow is as shown below.

screenshot_20181030-231429 screenshot_20181030-231443 screenshot_20181030-231450 screenshot_20181030-231456

Moving even forward

When I came back to the site on the app, and clicked on Stats button again, the Jetpack installation flow is shown again, and this time, it appears the webview remembers the new password that I had entered manually and the Jetpack installation goes through again (which I doubt actually happens, because Jetpack is already installed as shown on the images earlier - manual process) and finally, the the view comes back to Stats section of the app.

arunsathiya avatar Oct 30 '18 17:10 arunsathiya

I tested again on a second device (Nexus 9, Android 7.1.1, WPAndroid alpha-133) and am having the same issue as originally reported.

If Jetpack is already installed and activated but not connected, I get the login screen and can continue the connection flow, but if Jetpack is not installed or not activated I consistently get the results I described above.

rachelmcr avatar Oct 31 '18 13:10 rachelmcr

I deleted Jetpack on my self-hosted site and tested on 11.1-rc-1, Android 9, Security patch level October 5, 2018 on Essential Phone.

I followed the steps as outlined originally by @rachelmcr. I had the same results as @arunsathiya.

drwpcom avatar Nov 01 '18 18:11 drwpcom

Tested on Alpha-133 on MIUI Global 10 that runs on Linux kernel 4.4

I got the same results as Arun.

But there was one error I didn't capture on the screenshot. When I was on the Jetpack authentication step (where site address is prefield, and you click on connect) the connection dropped an error: Signing in error, please try again. The process went just one step back and auto-restarted the connection after 1 second. This time it went through and Jetpack was connected properly.

I tested this with 2 scenarios also:

  1. Jetpack was just deactivated on self-hosted site
  2. Jetpack was completely uninstalled on self-hosted site

blazevivan avatar Nov 03 '18 11:11 blazevivan

This issue has been marked as stale because:

  • It has been inactive for the past year.
  • It isn't in a project or a milestone.
  • It hasn’t been labeled [Pri] Blocker, [Pri] High, or good first issue.

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority (cc @designsimply).

stale[bot] avatar Nov 03 '19 12:11 stale[bot]