Require transliteration module

Bevan - December 16, 2008 - 04:59
Project:ImageCache
Version:6.x-2.0-beta10
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Drupal 6's menu handler stops doesn't parse characters after an ampersand in arguments. (Nor should it)

Therefore imagecache is unable to find the targeted file to cache when an incomplete path is passed to it as an argument to the menu callback. (If the file has a an ampersand in it's name).

The tranliteration module resolves this issue handsomely by removing characters like ampersands from file names before writing them to disk. This patch introduces a dependency on transliteration module. This fixes the bug in an elegant way.

AttachmentSize
transliteration.patch500 bytes

#1

drewish - December 21, 2008 - 23:32
Status:active» needs review

I'm reluctant to force people to use transliterate... perhaps we should just add a link to it from the imagecache project page.

#2

Bevan - December 28, 2008 - 19:35

> I'm reluctant to force people to use transliterate.

How come? This is a major bug in imagecache. It's not reasonable to expect end users (let alone developers) to know that they need to remove ampersands and non-latin characters from filenames, and filenames with these characters are common enough in all languages that it's likely the bug will be encountered on most sites.

> perhaps we should just add a link to it from the imagecache project page.

IMHO this is not a good solution, because it admits that imagecache is buggy yet forces the IC user to search for the fix themselves (even though the fix may apparently be obvious), when the bug could easily be avoided in the first place.

#3

drewish - December 28, 2008 - 21:24

i'm not convinced because in many cases it's platform specific. the real bug is in core not imagecache so feel free to work on getting transliterate committed to core.

#4

Bevan - December 29, 2008 - 22:08

Hmmm. I think we can agree to disagree. By adding transliteration as a dependency to IC, transliteration is going to get a lot more attention that will help it get into core someday.

Would you consider or accept a patch adding documentation to imagecache.info's description that transliteration module is highly recommended?

#5

drewish - December 29, 2008 - 22:13
Status:needs review» needs work

yeah, documenting it in that manner would be very helpful.

#6

Bevan - December 29, 2008 - 23:07
Status:needs work» needs review

Patch attached

AttachmentSize
347566.patch 800 bytes

#7

Bevan - December 29, 2008 - 23:14
Title:Files with ampersands can not be cached» Recommend transliteration module
Version:6.x-2.0-beta2» 6.x-2.0-beta3
Component:Code» Documentation

#8

drewish - January 6, 2009 - 02:31
Version:6.x-2.0-beta3» 6.x-2.x-dev
Status:needs review» needs work

I added a note to the project page. I think I'd rather avoid adding it to the .info file. A note in the README.txt or INSTALL.txt would probably be more appropriate.

#9

Bevan - January 6, 2009 - 03:21

> A note in the README.txt or INSTALL.txt would probably be more appropriate.

People generally don't read these files. I think it's a shame you aren't willing to give this issue the attention it deserves.

#10

drewish - January 6, 2009 - 03:45
Status:needs work» fixed

you'd be surprised. but it's fine with as is since it's on the freaking project page.

#11

System Message - January 20, 2009 - 03:50
Status:fixed» closed

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

#12

drewish - May 7, 2009 - 15:04
Title:Recommend transliteration module» Require transliteration module
Status:closed» patch (to be ported)

Bevan, I've changed my mind. I'm going to require transliteration. Committed the original patch to HEAD, need to back port to DRUPAL-5--2.

#13

drewish - May 7, 2009 - 15:05
Version:6.x-2.x-dev» 5.x-2.x-dev
Status:patch (to be ported)» fixed

Rolled a backport of #357569: Add support for transliteration in the module as well.

AttachmentSize
imagecache_347566.patch 1.28 KB

#14

System Message - May 21, 2009 - 15:10
Status:fixed» closed

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

#15

drewish - August 19, 2009 - 21:02
Component:Documentation» Code
Status:closed» reviewed & tested by the community

backing this out temporarily.

AttachmentSize
imagecache_347566.D5.patch 529 bytes
imagecache_347566.D6.patch 594 bytes

#16

drewish - August 19, 2009 - 21:41
Status:reviewed & tested by the community» fixed

recommitted now that the security fixes have gone out.

#17

System Message - September 2, 2009 - 21:50
Status:fixed» closed

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

#18

joachim - November 3, 2009 - 11:18
Version:5.x-2.x-dev» 6.x-2.0-beta10
Status:closed» active

I'm not seeing the dependency in beta10.

 
 

Drupal is a registered trademark of Dries Buytaert.