Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174993 - fuzzyocr FUZZY_OCR_WRONG_EXTENSION false positive
Summary: fuzzyocr FUZZY_OCR_WRONG_EXTENSION false positive
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Knight (RETIRED)
URL: http://fuzzyocr.own-hero.net/ticket/60
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 22:24 UTC by Paul B. Henson
Modified: 2009-11-13 15:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix the problem (nofilename.patch,509 bytes, patch)
2007-04-17 22:24 UTC, Paul B. Henson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul B. Henson 2007-04-17 22:24:06 UTC
When an embedded MIME image does not contain a file name, fuzzyocr  uses the Content-ID to generate a file name. If the Content-ID contains a ".", fuzzyocr mistakenly considers the characters after the "." to be the filename suffix, resulting in false positives of the FUZZY_OCR_WRONG_EXTENSION rule.

The patch I will attach after opening the bug should fix the problem, by adding "." to the list of characters fuzzyocr replaces with an "_" when generating a file name from the Content-ID. This will result in the suffix not being defined, and remove the false positives.


Reproducible: Always

Steps to Reproduce:
Comment 1 Paul B. Henson 2007-04-17 22:24:44 UTC
Created attachment 116571 [details, diff]
patch to fix the problem
Comment 2 Paul B. Henson 2008-04-12 00:37:59 UTC
Any thoughts about adding this patch to the ebuild? It's been almost a year...

Comment 3 Bernard Cafarelli gentoo-dev 2009-11-13 15:30:26 UTC
Thanks for the report! And sorry for the delay

I've just added 3.6.0 in tree, with this patch included