Opened 8 years ago

Closed 8 years ago

#5240 closed defect (fixed)

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

Reported by: trac@… Owned by: Blackhex
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 8 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.