Modify

Opened 9 years ago

Closed 9 years ago

#200 closed defect (fixed)

Cache TTL loaded as string from config file

Reported by: fifers 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 fifers 9 years ago.
Cast cache_ttl to float in model.py

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by fifers

Cast cache_ttl to float in model.py

comment:1 Changed 9 years ago by anonymous

  • Owner changed from eblot to anonymous
  • Status changed from new to assigned

comment:2 Changed 9 years ago by anonymous

  • Priority changed from normal to high

comment:3 Changed 9 years ago by eblot

#203 has been marked as a duplicate

comment:4 Changed 9 years ago by eblot

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

comment:5 Changed 9 years ago by eblot

  • Trac Release set to 0.8

comment:6 Changed 9 years ago by eblot

  • Trac Release changed from 0.8 to 0.10

comment:7 Changed 9 years ago by anonymous

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

Add Comment

Modify Ticket

Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.