gravatar event plugin does not cache

Found a bug? Tell us!!
Post Reply
eckes
Posts: 4
Joined: Thu Dec 14, 2006 12:42 am
Location: Karlsruhe, Germany
Contact:

gravatar event plugin does not cache

Post by eckes »

Hello, the Gravatar Event Plugin 1.14 has the problem that pickAvatar has a $cache parameter and a $cache static. The later is used for favatars and should be named $cache_dir.

The effect of this is, that gravatars are never cached.

Also: the $cache value should be used for favatars instead of the hardcoded value.

Also: right now gravatar.com is returning images for unknown users with no HTTP error code. I am not sure if that is a temporary problem or intentional. I mailed gravatar owner but did not get feedback.

It is possible to recognize those icons by size and ETag.

Bernd

BTW: the not cache bug is critical - privacy issue.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: gravatar event plugin does not cache

Post by garvinhicking »

Hi!

Thanks for reporting! I'll take care of fixing this next week when I return from a short trip :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

eckes, I just commited this to CVS. It looks good to me, but I'd like you to give it a test anyway; I'm worried that the $cache variable will prevent fallback from working properly.
Judebert
---
Website | Wishlist | PayPal
eckes
Posts: 4
Joined: Thu Dec 14, 2006 12:42 am
Location: Karlsruhe, Germany
Contact:

ok looks fine

Post by eckes »

judebert wrote:eckes, I just commited this to CVS. It looks good to me, but I'd like you to give it a test anyway; I'm worried that the $cache variable will prevent fallback from working properly.
Ok, the diff looks good to me, however I wonder:

$cache_dir = $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE . '/favatar';

$cache_dir = $serendipity['serendipityPath'] . $serendipity['uploadPath'] . '/gravatar';

Maybe the favatar directory should also be located in the uploadPath?

I am not using the fallback, so i cant really comment on this.

Gruss
Bernd
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Not knowing the difference, I don't think I'm willing to mess with it. :?
Judebert
---
Website | Wishlist | PayPal
Post Reply