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

Prompted to install Jetpack on private wpcom blog.

Open aerych opened this issue 12 years ago • 8 comments

"My Private Blog" is a wpcom blog set to private. When I tap on the link button below the badge, I'm taken to the Stats / Install Jetpack screen.

Step one: ios simulator screen shot jul 8 2014 2 02 08 pm

Step two: ios simulator screen shot jul 8 2014 2 05 30 pm

aerych avatar Jul 08 '14 19:07 aerych

I chased this rabbit a little ways into its hole. NoteService blogForStatsEventNote: is calling BlogService blogByBlogId: passing in note.metaSiteID which has a value of 0 in this case. I'm probably getting the Jetpack login screen because I have an unconnected self-hosted blog also in the app.

aerych avatar Jul 08 '14 19:07 aerych

Works correctly with just a wpcom in the app but as soon as I add a self-hosted blog I get the above behavior. Originally had this for 4.3 but changing to 4.2 as this should be a blocker.

aerych avatar Jul 08 '14 19:07 aerych

:disappointed_relieved: I'll take a look

koke avatar Jul 09 '14 07:07 koke

#1925 is just a workaround, the real problem is metaSiteID being 0. With this check it will load the blog on a web view (or a login page if it's private), which is not ideal, but at least it's relevant.

@jleandroperez do you know why it isn't syncing site IDs properly?

koke avatar Jul 09 '14 08:07 koke

Closed #1923 as it was for develop, #1925 is for release/4.2

koke avatar Jul 09 '14 09:07 koke

...as soon as I add a self-hosted blog I get the above behavior.

Actually, if there's a self-hosted with Jetpack configured, you'll get the stats screen for the Jetpack site instead of the one you clicked. I've fixed the stats REST API to include the site ID now, but I'm not sure if Simperium needs something to pick up the changes. @jleandroperez

koke avatar Jul 09 '14 10:07 koke

@koke Simperium should automatically get those changes next time you connect

chengfred avatar Jul 09 '14 10:07 chengfred

Closed in 61d2250c87bb4d252863d6fe31428c89c8934079

koke avatar Jul 11 '14 15:07 koke