bugranger - Bugs: bug #43738, bug in rifle: only lower case file...

 
 

bug #43738: bug in rifle: only lower case file extentions can be matched by an ext in rifle.conf

Submitted by:  C <mekanofox>
Submitted on:  Tue 02 Dec 2014 12:50:51 PM UTC  
 
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 02 Dec 2014 12:50:51 PM UTC, original submission:

I believe there is a bug in rifle, on line 198.
The 'lower()' conversion should be left out, i.e. as in the diff below:
(or, if you prefer it in patch format:
)

The 'extension' variable seems to hold the actual file extension that will be checked against the list of regexes specified after the 'ext' keyword in the 'rifle.conf'. If the regex extension matches, the given command action is executed. For example:
As it is now, the bug does not allow rifle to act on extensions/regexes containing any upper case letters since the 'extension' var will always be lowercase. For example, something like 'archive.tar.Z' cannot be simply matched by adding to the above list of regex alternatives just 'Z'. (yes, it will match if you add a single lowercase 'z', but that's not really the same extension).

C <mekanofox>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #32583:  rifle.patch added by mekanofox (535B - text/x-patch - just the patch file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mekanofox (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Dec 2014 12:50:51 PM UTCmekanofoxAttached File-=>Added rifle.patch, #32583

    Back to the top


    Powered by Savane 3.1-cleanup1