Modify

Opened 18 years ago

Closed 18 years ago

#200 closed defect (fixed)

Cache TTL loaded as string from config file

Reported by: Ryan Fife Owned by: anonymous
Priority: high Component: LdapPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description

When the cache_ttl variable is loaded from the trac project config file, it is loaded as a string. This causes problems during arithmetic operations with float variables. I've cast the result as a float to ensure that it is always the correct type. This is only a problem if you don't assign a non-default value for cache_ttl. Patch attached.

Attachments (1)

model.patch (960 bytes) - added by Ryan Fife 18 years ago.
Cast cache_ttl to float in model.py

Download all attachments as: .zip

Change History (8)

Changed 18 years ago by Ryan Fife

Attachment: model.patch added

Cast cache_ttl to float in model.py

comment:1 Changed 18 years ago by anonymous

Owner: changed from Emmanuel Blot to anonymous
Status: newassigned

comment:2 Changed 18 years ago by anonymous

Priority: normalhigh

comment:3 Changed 18 years ago by Emmanuel Blot

#203 has been marked as a duplicate

comment:4 Changed 18 years ago by Emmanuel Blot

Should have been fixed in [492]. Not tested yet (sorry)

comment:5 Changed 18 years ago by Emmanuel Blot

Trac Release: 0.8

comment:6 Changed 18 years ago by Emmanuel Blot

Trac Release: 0.80.10

comment:7 Changed 18 years ago by anonymous

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.