Race conditions when editing things in forms that also get updated via the API

Created on 8 September 2010, over 14 years ago
Updated 15 January 2025, 21 days ago

user a goes to node/1234/edit

user b goes to admin/content and unpublishes node/1234 via the checkbox.

user a saves node/1234 - it's published again because $form_state['values'] wasn't and couldn't be updated from the updated node.

No idea what to do about this, it applies both for direct database updates, which still happen in some places, and using the api via node_save(). If via node_save() we could compare timestamps and issue a warning. There's some form protection for cross-edits like this but nothing at the crud level at all.

Feature request
Status

Closed: duplicate

Version

11.0 🔥

Component

base system

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024