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

Cannot post to Atomic Site as an author #16858

Closed
adamjohndaly opened this issue Jul 13, 2021 · 5 comments · Fixed by #16870
Closed

Cannot post to Atomic Site as an author #16858

adamjohndaly opened this issue Jul 13, 2021 · 5 comments · Fixed by #16870

Comments

@adamjohndaly
Copy link

adamjohndaly commented Jul 13, 2021

Expected behavior

Creating or editing posts I own as an author will not fail to upload.

Actual behavior

Error message saying Post Failed to Upload

Steps to reproduce the behavior

  1. Be an author on an Atomic site
  2. Create blog post on WP iOS client
  3. Publish
  4. Error message stating Post Failed to upload.
Tested on iPhone 12 Pro, iOS iOS 14.6, WPiOS WP 17.7
Slack ID

p1626191963467800-slack-C03URUK5C

Zendesk

4136410-zen

IMG_BF1B46CF018F-1

@SiobhyB
Copy link
Contributor

SiobhyB commented Jul 13, 2021

Noting that I was also able to replicate this issue on an iPhone XR, iOS 14.6, WPiOS 17.8.

The user mentioned that they first noticed the issue around three months ago and I found that there was also an issue with authors on Atomic sites losing access on the web around that timeframe: Automattic/wp-calypso#51794. I'm not certain if it's relevant, but thought I'd make a note of it just in case!

@SiobhyB
Copy link
Contributor

SiobhyB commented Jul 14, 2021

I did a bit more testing and confirmed this isn't reproducible on Android for me, only on iOS.

I also went digging through Zendesk to see if there are other user reports and only found one other so far, in 4019961-zd-woothemes. I followed up with that user in 4138243-zd-woothemes to let them know we're currently looking into this issue.

The common errors in the logs are as follows:

2021-07-12 11:27:14:718 Failed syncing settings for blog https://[redacted].com: Error Domain=WordPressKit.WordPressComRestApiError Code=7 "You do not have the capability to manage settings for this site." UserInfo={WordPressComRestApiErrorMessageKey=You do not have the capability to manage settings for this site., WordPressComRestApiErrorCodeKey=Forbidden, NSLocalizedDescription=You do not have the capability to manage settings for this site.}

2021-07-12 11:27:14:750 Failed checking muti-author status for blog https://[redacted].com: Error Domain=WordPressKit.WordPressComRestApiError Code=2 "User cannot view authors for specified post type" UserInfo={NSLocalizedDescription=User cannot view authors for specified post type, WordPressComRestApiErrorCodeKey=unauthorized, WordPressComRestApiErrorMessageKey=User cannot view authors for specified post type}

@hypest
Copy link
Contributor

hypest commented Jul 14, 2021

Thanks for raising @adamjohndaly and triaging @SiobhyB !

@diegoreymendez gave it a look and there's indeed an issue with the API calls for posting to Atomic sites, on WPiOS. Along with @twstokes and Diego we have identified the recent work that has contributed to the issue. Tanner will collab with @guarani to land a fix.

@twstokes
Copy link
Contributor

twstokes commented Jul 15, 2021

We've determined that for limited users on Atomic sites (authors, contributors), the app was sending the wrong author ID on the API calls to create a new page or post. This is because there's a difference between their wp.com ID and what the Atomic site uses.

The proposed fix will be in #16870 and will be aimed at the current beta, 17.8. Thanks for surfacing this!

@hypest
Copy link
Contributor

hypest commented Jul 16, 2021

Closing as #16870 got merged.

@hypest hypest closed this as completed Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants