Patched couple of bugs

pivica - January 21, 2008 - 16:11
Project:OG Files
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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)

#1

pivica - January 21, 2008 - 16:14

Here is also complete og_files.module with fixed bugs.

AttachmentSize
og_files.module.txt8.83 KB

#2

pivica - January 21, 2008 - 16:20

Sorry I forgot patch file in first post

AttachmentSize
og_files.module.patch7.48 KB

#3

nath - January 22, 2008 - 08:57

One small formal comment: You have made a lot of whitespace changes in your patch. This makes finding the real differences difficult.

#4

pivica - January 22, 2008 - 13:23

Yes 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.

#5

pivica - January 23, 2008 - 22:26

OK here is a better patch suggestion. Same as #2 but without whitespace changes.

AttachmentSize
og_files.module.patch3.29 KB

#6

nath - January 24, 2008 - 10:18
Status:patch (code needs review)» patch (reviewed & tested by the community)

You 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.

#7

diveli - January 29, 2008 - 05:10

Thanks for this patch, the module now works for me as it's meant to.

Looking forward to an update.

#8

STNyborg - January 31, 2008 - 19:24

I 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.

#9

scarer - February 8, 2008 - 05:40

This 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

#10

scarer - February 8, 2008 - 05:43

ah 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

#11

scarer - February 8, 2008 - 06:01

All the patches just fail...

#12

scarer - February 8, 2008 - 06:13

Try 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...

#13

softtouch - February 13, 2008 - 02:25

Some 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...

#14

pivica - February 14, 2008 - 15:45

For 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.

AttachmentSize
og_files.zip9.91 KB

#15

softtouch - February 15, 2008 - 01:16

This is great! Thank you!

#16

a great place f... - February 27, 2008 - 13:41

I 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 ?

#17

asak - February 27, 2008 - 19:14

I've just installed the patched module (as provided @ #14) - but get no settings/permissions/anything for the module (same as #16 i guess).

#18

a great place f... - February 28, 2008 - 11:18

Found 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

#19

asak - February 28, 2008 - 16:22

Thanks.... ;)

#20

wundo - May 16, 2008 - 18:11

pivica could you send me a patch with the last version you made?

#21

pivica - May 16, 2008 - 22:28

hi 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.

#22

wundo - May 17, 2008 - 13:46
Status:patch (reviewed & tested by the community)» fixed

Fixed ;)

#23

Anonymous (not verified) - May 31, 2008 - 13:55
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.