Proposed patches will fix all of bugs that I found in current 5.x-1.x-dev revision and it seems that with this patch and og_files.install on http://drupal.org/node/208625#comment-699610 og_files is ready for daily use, but more testing is needed :)
Fixed bugs are:
1) og_files_file_download was not behave correctly when setting drupal file system to private. Accessing files from /files dir was not possible
2) error in og_files_file_download sql command
3) og_file_list_form was not able to correctly handle multiple sub folders
4) while creating new directories og_file_list_form_submit sometimes added '//' in new directory path
5) og_files_install is commented enabling use of og_files.install (see http://drupal.org/node/208625)
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | og_files.zip | 9.91 KB | pivica |
| #5 | og_files.module.patch | 3.29 KB | pivica |
| #2 | og_files.module.patch | 7.48 KB | pivica |
| #1 | og_files.module.txt | 8.83 KB | pivica |
Comments
Comment #1
pivica commentedHere is also complete og_files.module with fixed bugs.
Comment #2
pivica commentedSorry I forgot patch file in first post
Comment #3
nath commentedOne small formal comment: You have made a lot of whitespace changes in your patch. This makes finding the real differences difficult.
Comment #4
pivica commentedYes I know, sorry for that. I am using Eclipse and was probably applied auto format in some point on file so editor inserted/erased all that whitespace. Will try not to do that in the future.
Comment #5
pivica commentedOK here is a better patch suggestion. Same as #2 but without whitespace changes.
Comment #6
nath commentedYou could completely remove the install function instead of just commenting it out. Apart from that, the new patch is much more readable. It looks fine to me.
Comment #7
Anonymous (not verified) commentedThanks for this patch, the module now works for me as it's meant to.
Looking forward to an update.
Comment #8
STNyborg commentedI am newbie to Drupal modules and especially patches - thus not sure if my question is dumb (!)... As I read the thread it looks like the latest patch will solve my database problem with og_files. However I don't know how to add patches as I have just ftp'd modules to the Drupal module directory. Please help.
Comment #9
scarer commentedThis patch still doesn't make the module appear in the administration listings.
Is there anything else that might be done to make this module work on a Drupal 5.7 site?
Thanks!
Cheers,
Sarah
Comment #10
scarer commentedah by the way for applying patches you just upload the patch file to the directory where the module file is stored then in ssh you issue the following command:
patch < whatever.patch
and it should work if it's written correctly
sarah
Comment #11
scarer commentedAll the patches just fail...
Comment #12
scarer commentedTry creating a table like this:
CREATE TABLE og_files (gid INT NOT NULL, data TEXT NOT NULL)
still testing to see whether this is working or not...
Comment #13
softtouch commentedSome of us do not have a chance to use patch files, is it possible to attach here a complete module with the bug fix included?
The files module is one of the modules we need badly (developer groups), but I also can not use patch files...
Comment #14
pivica commentedFor all of you that can't properly patch og_files I have created patched module with all files in zip archive. Please remember to first uninstall previous version of og_files module and also to erase it from system table as described in http://drupal.org/node/208625#comment-697643.
Comment #15
softtouch commentedThis is great! Thank you!
Comment #16
the fatman commentedI managed to install the files in pivica's zip archive, many thanks for that, and now the module appears to install correctly but I can't find it.
It doesn't have it's own settings page or menu item, no mention in access control, I can't find any reference to it anywhere, what am I missing here ?
Comment #17
asak commentedI've just installed the patched module (as provided @ #14) - but get no settings/permissions/anything for the module (same as #16 i guess).
Comment #18
the fatman commentedFound it
When you add a new group, or edit an old one, there's a button way down the bottom: enable files for this group
Comment #19
asak commentedThanks.... ;)
Comment #20
wundo commentedpivica could you send me a patch with the last version you made?
Comment #21
pivica commentedhi wundo,
i didn't develop any new code for this module so archive from #14 is my last version and patch from #5 is last patch i have used.
Comment #22
wundo commentedFixed ;)
Comment #23
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.