Support for Drupal 5.5

GoofyX - October 18, 2007 - 07:53
Project:Advanced cache
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:firebus
Status:closed
Description

Hi,

Drupal 5.3 has just been released, fixing various security vulnerabilities. The latest dev version fails to patch (the block_cache.patch fails at all) or patches the Drupal core with a few lines offset.

I suppose an updated development version (or maybe a stable one) that applies cleanly on 5.3 would be nice. 5.3 is a recommended release.

A question is: Is it safe to patch 5.3 by hand?

Thanks.

#1

robertDouglass - October 18, 2007 - 08:55

If you patch 5.3 by hand and reroll the patches and upload them to this issue it will speed the process of getting a stable advcache release for 5.3. Otherwise you are somewhat tied to my schedule (in lieu of another volunteer) and I won't be able to get to it before next week. Thanks for helping!

#2

GoofyX - October 18, 2007 - 09:05

OK, I will do that in the next few days to help. I asked mainly to check if there will be any problems in case the core has changes that will invalidate the patches by the module.

Thanks!

#3

Wim Leers - October 18, 2007 - 09:29

If there would be a Drupal 5.2 -> 5.3 patch, then module updates like this one would become trivial:
1) apply advcache patch on D5.2
2) apply 5.2 -> 5.3 patch
3) generate new patch for advcache

Maybe something worth considering?

#4

GoofyX - October 18, 2007 - 19:53

OK, this is a first try with comment_cache.patch. I applied manually (by hand) the patch on modules/comment/comment.module and modules/node/node.module and created a new patch for those files. Please check and yell if I did something stupid... :-)

AttachmentSize
comment_cache_4.patch 9.56 KB

#5

GoofyX - October 18, 2007 - 20:07

Here's the node_cache.patch.

AttachmentSize
node_cache.patch 2.26 KB

#6

robertDouglass - October 19, 2007 - 09:25

Thanks, keep them coming.

#7

tomchuk - November 5, 2007 - 01:38

Here's all the patches for 5.3. All but block applied with a little fuzz. These apply cleanly to 5.3 and Drupal still works after applying them, other than that, not a lot of testing.

AttachmentSize
all_patches.patch 26.45 KB
block_cache.patch 3.65 KB
comment_cache.patch 5.47 KB
forum_cache.patch 1.02 KB
node_cache.patch 2.28 KB
path_cache.patch 6.25 KB
search_cache.patch 3.68 KB
taxonomy_cache.patch 4.29 KB

#8

GoofyX - November 5, 2007 - 10:32

I think block_cache.patch needs attention, because the existing patch not only fails because of different line offset, but it fails because of different PHP code. The maintainer should probably test these carefully.

Anyway, tomchuk a big thanks for your help. I tried to deal with the other files too, but did not have the time to finish them.

#9

tomchuk - November 5, 2007 - 15:59

Yeah, looking back at the revision for the changes in block.module between 5.2 and 5.3 it appears that they were important.

The block patch in my previous post reverted the changes to that query to the version in 5.2, if anyone applied that patch they should reverse it out from the root directory of your Drupal install with patch -p0 -R < /path/to/block_cache.patch

Here are updated patches that use the updated query from 5.3 (only block_cache.patch and all_patches.patch) changed, but posting all for completeness. Again, they apply cleanly, and Drupal seems to work afterwards, but use at your own risk.

AttachmentSize
taxonomy_cache.patch 4.29 KB
search_cache.patch 3.68 KB
path_cache.patch 6.25 KB
node_cache.patch 2.28 KB
forum_cache.patch 1.02 KB
comment_cache.patch 5.47 KB
block_cache.patch 3.76 KB
all_patches.patch 26.58 KB

#10

GoofyX - November 10, 2007 - 22:30

So, maintainer(s), what's the status of the patches provided by tomchuk for Drupal 5.3, can we safely apply them in a production site?

#11

ilmaestro - November 20, 2007 - 02:02

Tom, all of your patches worked for me. This is my first time using this module, but I'll report back if anything seems to not be working.

#12

ilmaestro - November 21, 2007 - 05:18

Ok, I encoutered a problem today. I don't know if it is a problem with Tom's 5.3 patch or a bug in general. Regarding the comment caching, I noticed that for nodes that don't have any comments, cache_set is called *every* time the node page is loaded, even though no comments exist and a cache record already exists anyways.

I'm not sure it makes sense to cache an empty value, or if so, we probably shouldn't be caching some value that's the same as what we retrieved from the cache, even if that value is empty.

#13

firebus - November 25, 2007 - 20:29

this is a minor bug, unrelated to the 5.3 patches. it also existed in 5.2. imo it's pretty harmless.

#14

robertDouglass - November 25, 2007 - 21:32

@ilmaestro: if you haven't already, could you please file a separate issue for the comment cache patch? Good catch!
@tomchuck: Thanks *very* much for the patches. Sorry I haven't had time to review them. Your help is appreciated.

#15

GoofyX - November 29, 2007 - 21:24

So, Robert, any rough estimate about when we are going to have a stable release for v.5.3?

#16

robertDouglass - December 5, 2007 - 10:17

@firebus feel free to commit these when you deem them ready.

#17

GoofyX - December 9, 2007 - 10:58

We must also make checks against version 5.5 that just came out.

#18

tomchuk - December 10, 2007 - 17:48

The 5.3 patches apply with some offsets to 5.4 and 5.5. Attached are patches that apply cleanly against 5.5. I haven't had a chance to test these at all, but will in the next day or two.

AttachmentSize
taxonomy_cache.patch 4.31 KB
search_cache.patch 3.7 KB
path_cache.patch 6.32 KB
node_cache.patch 2.31 KB
forum_cache.patch 1.05 KB
comment_cache.patch 5.51 KB
block_cache.patch 3.78 KB
all_patches.patch 26.77 KB

#19

firebus - December 17, 2007 - 06:08
Assigned to:Anonymous» firebus
Status:active» reviewed & tested by the community

i just committed this to the dev branch, so a new tarball should be available once the cron runs.

it tests out fine for me, but i'd like to get confirmation from at least one other person before i create a new release for this.

thanks for your work on this, tomchuk!

#20

Christefano - December 18, 2007 - 02:34

Right now I'm only using the path patch but I can report that it's working for me an a D5.5 installation with 1000+ nodes. Thanks for all of your work, guys.

#21

firebus - December 24, 2007 - 05:57
Title:Support for Drupal 5.3» Support for Drupal 5.5
Status:reviewed & tested by the community» fixed

setting to fixed. i'll roll a new release once i've tested sufficiently.

#22

Anonymous - January 7, 2008 - 06:11
Status:fixed» closed

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

#23

GoofyX - January 11, 2008 - 07:02
Title:Support for Drupal 5.5» Support for Drupal 5.6
Category:support request» task
Status:closed» needs review

Drupal 5.6 is out, fixing security vulnerabilities.

Attached are all patches (except the big thing, all_patches.patch) that apply cleanly on 5.6. All patches needed a few line offset changes, other than that, they should be fine.

AttachmentSize
block_cache.patch 3.78 KB
comment_cache.patch 5.51 KB
forum_cache.patch 1.05 KB
node_cache.patch 2.31 KB
path_cache.patch 6.32 KB
search_cache.patch 3.7 KB
taxonomy_cache.patch 4.31 KB

#24

firebus - January 11, 2008 - 18:27
Title:Support for Drupal 5.6» Support for Drupal 5.5
Status:needs review» closed

opened http://drupal.org/node/208941 for this (new :) issue.

don't worry about reposting the patches there.

i'll have time to review and hopefully commit this weekend.

thank you!!!

 
 

Drupal is a registered trademark of Dries Buytaert.