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

Exception when "withdrawing" a published section #1129

Open
chrisroos opened this issue May 23, 2017 · 1 comment
Open

Exception when "withdrawing" a published section #1129

chrisroos opened this issue May 23, 2017 · 1 comment
Labels

Comments

@chrisroos
Copy link
Contributor

chrisroos commented May 23, 2017

Steps to reproduce:

  1. Create a new manual
  2. Add a section to the manual
  3. Publish the manual
  4. Visit the section, click "Withdraw" and confirm the withdrawal
  5. Observe that a RestClient::UnprocessableEntity: 422 Unprocessable Entity exception is raised from the Publishing API

Despite this exception being raised by the Publishing API the Section will have been deleted from the local manuals-publisher database. This means that it you go "back" in the browser and try to withdraw the section again you'll now see the Section::RemoveService::SectionNotFoundError exception. At this point the local database and Publishing API/Content Store are out of sync.

@chrisroos chrisroos added the bug label May 23, 2017
@chrisroos
Copy link
Contributor Author

We've recently seen the Section::RemoveService::SectionNotFoundError in production.

My guess is that the user encountered a Publishing API error and then used the browser back button to try again. By which time the Section stored in the local database had been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant