Hi @all,

I just wanted to report that, when I try to update a cached node, I always get the validation error "This content has been modified by another user, changes cannot be saved." as long as I truncate the node_cache table before submitting.

The error gets thrown by the following statement in the node_validate() function:

if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {
    form_set_error('changed', t('This content has been modified by another user, changes cannot be saved.'));
}

The user trying to update the node has two roles: the authenticated user role and another one assigned through the RoleAssign module.

As soon as I comment out the patched line "$cache = cache_get($cache_id, 'cache_node');" in the patched node_load() function of the node.module everything works fine again.

I'd appreciate your help & thanx in advance

hctom

Comments

ray007’s picture

subscribing

dharamgollapudi’s picture

Subscribing....

firebus’s picture

so the steps to reproduce are:

1. go to node/123 (so that it gets cached)
2. truncate the cache_node table
3. go to node/123/edit
4. submit the edit form

or do you have to go to the edit page first before you truncate the cache_node table to make this happen?

robertdouglass’s picture

can anyone confirm this for DRUPAL-5--1-6 or DRUPAL-5?

hctom’s picture

Status: Active » Closed (cannot reproduce)

I guess this is outdated... closing