New issue in 6.10: Re-edit a revision in moderation ignores the 'new revisions in moderation' checkbox [patched]

stacysimpson - April 14, 2009 - 19:00
Project:Revision Moderation
Version:6.x-1.0-alpha1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

After upgrading Drupal core to 6.10, we are seeing the following problem.

When users choose to edit a specific revision, the 'create new revision' and 'new revisions in moderation' checkboxes seem to be ignored. Any changes are automatically published as the current revision. If users choose the primary menu's edit option, they edit the most recent revision (which is in moderation) and those two checkboxes seem to function appropriately.

Has anyone else seen this?

#1

stacysimpson - April 16, 2009 - 13:19

Is anyone else seeing this issue? Or, not seeing it? Something must have changed wrt editing a specific revision.

#2

escoles - April 29, 2009 - 16:17

We are seeing this issue. Here's the use-case I just scratched out to create an issue on it:

1. User x changes document.
2. Revision is placed in moderation.
3. User x sends URL for revision to User y.
4. User y edits revision, clicks Save.
5. Page is immediately published with user #3's changes -- Revision in Moderation flag is ignored.

We're using Drupal 6.10, 6.x-1.0-alpha1 of Revision Moderation. "Exempt administrators from revision moderation" is un-set.

It's a repeatable behavior on the site we've just launched.

This happens when editing any revision, not just revisions in moderation, and it affects nodes created both before and after installation of Revision Moderation. Can be observed for users with and without the "administer nodes" permission.

#3

escoles - April 30, 2009 - 17:35

As a workaround for this, you could look at the Private module:

http://drupal.org/project/private

It creates a setting to 'make private' and a permission to 'view private nodes.' Haven't tried it yet, but will probably implement it to work around this issue for the site we're just launching. Hopefully Revision Moderation will be fixed by the time of our next launch.

#4

escoles - May 5, 2009 - 13:14
Priority:normal» critical

Of course, "private" won't even remotely suffice. Real "D'oh" moment: Private requires that the content be made inaccessible to the public, which won't do. However, Revisioning, while complex, does seem to be designed to do a similar thing.

http://drupal.org/project/revisioning

Will require some careful testing, though, as it is designed to support much more complex workflows than Revision In Moderation and there's at least one report of serious consequences from un-installing it:

http://groups.drupal.org/node/21147

Revision In Moderation is much simpler, and would be a much better solution, if it did not have this bug.

BTW, since this makes the 6.x branch unusable, I've escalated to critical.

#5

stacysimpson - May 5, 2009 - 20:03

We made the following change, but are still unclear for how this ever worked in the first place. Good luck!

AttachmentSize
revision_moderation.diff 2.36 KB

#6

escoles - May 6, 2009 - 14:17

Thanks very much for posting your changes, this seems to work like a charm.

(While I was re-testing to make sure that I'd be able to tell if it would be fixed, I realized that the defect was stranger than this issue thread revealed: Sometimes "Create new revision" would spontaneously toggle-off, and sometimes edited revisions would go into moderation. Just putting this down for issue documentation.)

#7

escoles - May 6, 2009 - 16:24
Title:New issue in 6.10: Re-edit a revision in moderation ignores the 'new revisions in moderation' checkbox» New issue in 6.10: Re-edit a revision in moderation ignores the 'new revisions in moderation' checkbox [patched]

See patch @ http://drupal.org/node/433608#comment-1556528

#8

munkeyxis - May 12, 2009 - 16:44

what do i do with a .diff file to make this module work?

#9

stacysimpson - June 20, 2009 - 18:54
Status:active» patch (to be ported)

Munkeyxis, I routinely have issues with our systems 'patch' utilities. The diff is just showing you the differences between the indicated versions of the files.

#10

jbrauer - July 12, 2009 - 08:20
Status:patch (to be ported)» needs review

This needs review. I'll be looking later this week but it could use other eyes as well.

For those new to using patches (in this case the 'diff' in #5) please see http://drupal.org/patch/apply

#11

DanielTheViking - September 3, 2009 - 12:50

If the patch works, could it be committed to -dev, or preferably as the next alpha?
Not good to have this module in completely unusable state for D6.

Going through the issue queue, I wonder if this module is in risk of being abandoned?
There is certainly a need for this module as the alternative moderation modules are way too complex for most sites. This one should be a perfect fit, even small enough to be considered for D7 core?

#12

jbrauer - September 8, 2009 - 16:40

It is not at risk of being abandoned. Very likely it will have a D7CX pledge soon as well as more attention to the issue queue. The status of this issue is needs review as we need reviewers to determine if the patch works before it could be committed. This module won't be included in D7 core but it will be available for D7.

 
 

Drupal is a registered trademark of Dries Buytaert.