Ticket #5240 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: trac@alwins-world.de Assigned to: Blackhex
Priority: high Component: DownloadsPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

Hi,

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 result.group(2)
None
>>>

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.

Bye

Attachments

Change History

05/16/09 15:31:34 changed by Blackhex

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #5240 (File extension check does not work / option switching extension checking off)




Change Properties
Action