jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Admin Page: Do not use the feed to verify public accessibility

Open kraftbj opened this issue 10 years ago • 4 comments

When activating modules that require the site to be accessible, we are relying on a remote WP.com call that checks the site's feed for validity. This is too fragile.

Could we check the homepage for a 200 response instead? Why are we relying specifically on the feed?

Details: p1HpG7-3v8-p2

kraftbj avatar Nov 01 '16 21:11 kraftbj

Once 4.7 is out we can make a REST API request to see the posts, which should work for the majority of sites out there. And if it doesn't, then we can probably check the homepage as you said, or leave the feed check as it is.

zinigor avatar Nov 02 '16 07:11 zinigor

Also reported here: https://wordpress.org/support/topic/photon-failed-to-activate-2/

jeherve avatar Nov 02 '16 21:11 jeherve

Backing up some, why do we care if a site is accessible? If the user wants to activate the module, why would we stop them?

kraftbj avatar Nov 03 '16 20:11 kraftbj

Also reported here: https://wordpress.org/support/topic/photon-failed-to-activate-error-this-module/

jeherve avatar Nov 08 '16 10:11 jeherve