Opened 9 years ago

Closed 9 years ago

#5240 closed defect (fixed)

File extension check does not work / option switching extension checking off

Reported by: trac@… Owned by: Radek Bartoň
Priority: high Component: DownloadsPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11



I tried severy times today using this plugin, but always get the message about unknown file type. Filetype is setup correct, but the inside regular expression seems not working with python 2.4 or python 2.5,

And so I tried it on console (expression tooked from code):

Python 2.5.2 (r252:60911, Sep 30 2008, 15:42:03)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> reg = re.compile(r'^(.*)(?:[.](.*)$|$)')
>>> result = reg.match('kdesvn-1.3.1.tar.bz2')
>>> print

Other words: it doesn't work. It can not work. So I commented out localy the type check.

And this is the next: I'm sure it would make sense inserting an option switching this check complete of. On some sites only administrators may upload various files. So them need no restrictions about this and sometimes it is real bulky.


Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Radek Bartoň

Resolution: fixed
Status: newclosed

Silly me. Check out r5752. You can disable check with ext = all now.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Radek Bartoň.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.