Hi, i found out that there is a problem with running the cron job for nodes that are protected by password.

If a user has created a protected node and the admin is running the cron job (run cron manually) he hase to type in the password of a node ... and therefore the cron job could not complete.

Comments

osopolar’s picture

This will happen if you have to reindex the search index.

1. reindex search: /admin/settings/search -> reindex site
2. run cron

There is a hook update_index.

If you have a look at the node.module: node_update_index() line 2505 you will see that there the function drupal_render($node->content); is called. I think this will invoke the protected_node_nodeapi with $op=='view'. And therefore you will be redirected: drupal_goto('protected-node', 'from=' . $node->nid);

I don't know how to fix this. the best would be neither to redirect nor to build the body. But how do we know that the node is built for update_index?

mtolmacs’s picture

Duplicate of #170915 (http://drupal.org/node/170915). 5.x.-1.x-dev is fixing this. Please test that version

mtolmacs’s picture

Status: Active » Closed (duplicate)