Our bypass permission is very ambiguous and could also potentially conflict with another module since it does not include the word 'Mollom'. We should rename this to 'bypass mollom protection' so it is in line with our 'bypass content access control' we have in Drupal 7.

Comments

dave reid’s picture

Does this sound reasonable before I proceed with a patch?

dries’s picture

I'm OK with the proposed change.

We should probably worry about an upgrade path though?

dave reid’s picture

Of course. It's pretty easy to do though. Should we worry about an upgrade path for the HEAD/D7 branch though?

dries’s picture

Could you rephrase the question? We should have an upgrade path from D6 to D7.

dave reid’s picture

Oh, I was thinking D7->D7 upgrade, but it's going to have to be included in the D6->D7 upgrades anyway, so moot point.

dave reid’s picture

StatusFileSize
new2.03 KB
new1.66 KB

Patches for 6.x and 7.x attached for review. Open to suggestions on improving the description for the bypass mollom protection permission in the 7.x patch.

6.x
No test failures (comment operation exceptions)
Tested upgrade path

7.x
Currently expected test failures?

dave reid’s picture

Status: Active » Needs review
sun’s picture

I wonder whether we shouldn't entirely remove this permission instead?

Due to the new form integration, each registered form comes with a 'bypass access' permission name, which basically should be sufficient?

dave reid’s picture

Probably not actually. The per-form permissions are very high-level permissions like 'administer nodes', etc. If I have multiple levels of trust on a site, this permission is still very useful. Plus, how do admin/regular users know which permissions to add to a role to bypass forms? They'd have to look in the code to figure it out. One overall bypass permission make a lot of sense. Same reason we still have a 'bypass node access' in D7.

sun’s picture

Status: Needs review » Needs work

ok, but this needs a re-roll now

dave reid’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs work » Needs review
StatusFileSize
new2.03 KB

Not sure why the patch didn't apply on the testbot. Re-rolled for D7.

dave reid’s picture

StatusFileSize
new1.72 KB

Ah, odd it was the D6 patch that didn't apply, but the D7 patch still did apply, contrary to the testbot results. Re-rolled for D6 as well.

dave reid’s picture

Ah, test bot is trying to apply D7 patches against D6 Mollom. That's why we're getting that result.

Status: Needs review » Needs work

The last submitted patch, 663254-mollom-perm-D7.patch, failed testing.

dave reid’s picture

I'd like to have a few other people try and run the test manually. I can't duplicate the test bot results at all, so it may be something odd with running these tests on the testbot platform.

dave reid’s picture

Status: Needs work » Needs review

Arg, thought the failures were with 6.x-1.x. I can confirm test failures with non-patched Mollom 7.x-1.x.

sun’s picture

@Dave: Yes, Mollom HEAD is known to be broken currently, and will keep that way, until we get to do #683998: Kill cache_mollom, rely on Form API (after the new D6 stable will be released)

sun’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.71 KB

Sorry, my other patch invalidated this again.

Re-rolled against 6.x. Port to HEAD should follow after commit.

dries’s picture

I'm OK with this patch. It looks like an improvement to me. I guess it is OK to use 'mollom protection' (versus the more generic 'spam protection').

dries’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Reviewed & tested by the community » Needs work

Committed to DRUPAL-6--1. Thanks.

Moving to Drupal 7.

sun’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new2.11 KB

Re-roll against HEAD.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Marking this 'fixed'.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit bb8695a on master, fai6, 8.x-2.x, fbajs, actions by Dries:
    - Patch #663254 by Dave Reid, sun: rename ambiguous 'post with no...

  • Commit bb8695a on master, fai6, 8.x-2.x, fbajs, actions by Dries:
    - Patch #663254 by Dave Reid, sun: rename ambiguous 'post with no...