Hi,
i found a bug.
If ich change the access right insight dbfm of a file or directory away from the default, i get an error.
_detailed_
If i change the access rights of a file - tab [read/ Write access] to "Restricted, writeable to the fileowner (and the rolles and groups detailed below - optional" to a role, the dbfm shows no error. But if reload the dbfm or access any other contend in my drupal i get a red box with the follwing error:
* warning: array_diff() [function.array-diff]: Argument #1 is not an array in /etc/drupal/5/sites/all/modules/dbfm/dbfm.module on line 4066.
* warning: array_diff() [function.array-diff]: Argument #2 is not an array in /etc/drupal/5/sites/all/modules/dbfm/dbfm.module on line 4067.
Any ideas?
Con
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | patchAsFile.txt | 3.18 KB | geoff_eagles |
| #4 | dbfm.module.patch | 4.2 KB | geoff_eagles |
Comments
Comment #1
rooey commentedHi,
Could you tell us, step by step, what you do to produce this error?
Kindest.
M.
Comment #2
geoff_eagles commentedThanks for reporting the bug. I see the error following the steps you gave. Our servers have their warning messages switched off which is probably how rooey missed them. I'll get back to you later today when I can see how to fix the problem.
Comment #3
geoff_eagles commentedEssentially the problem comes about because you're not using organic groups for permission control on your server. This is supposed to be an optional module for dbfm but it seems as though you need it to avoid getting error messages. I'll add a test in the code on whether you're using the groups module which will prevent the error messages. Expect a patch after I've had some lunch.
Comment #4
geoff_eagles commentedOK - here's a patch which cures the problem.
You MUST apply the previous patch (posted Apr 3rd) before you can use this one.
Just pop the patch into your module directory and type:
patch < dbfm.module.patch
Comment #5
conloos commentedThanks 1000 times,
i didnt resive a mail from drupal.org, if anybody creates a replay ... sorry.
In the last week i setup a second drupal5 install, because i hoped it is a problem between the installation trys of different modules. I test the patch today.
Thanks Con
Comment #6
conloos commentedOk i applied the two patches.
i get:
i checked the dbfm, and the second patch wasnt full present, so i merged by hand:
After that i restart drupal and tryed:
I get the upper error only if i changed to any other side the first time, but than the error vanished. Before your patches i got the error on every (side) change.
I didnt activated og!!
I tryed the og, but it is to complex for the users of this project, so i didnt want to use it. Is it a strong depancy to enable og? Or is this a last "simple" bug?
Thanks con
Comment #7
avpadernoComment #8
conloos commentedHi,
I installed OG, but the error is still present. In the file properties window I didnt have a workgroup menu?!
Con
Comment #9
geoff_eagles commentedI think the patching is screwy. I've tested again here but I wasn't able to duplicate the problem you had when you applied your patch.
I've attached the function that needs patching as a file. If you could just cut and paste that over the same function in your dbfm.module file it should work without errors.
Comment #10
conloos commentedit works ...
no failures and working right permissions :o)
Thank you!!!
con
Comment #11
conloos commented