Modify

Opened 8 years ago

Closed 8 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 8 years ago.
Cast cache_ttl to float in model.py

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by fifers

Cast cache_ttl to float in model.py

comment:1 Changed 8 years ago by anonymous

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

comment:2 Changed 8 years ago by anonymous

  • Priority changed from normal to high

comment:3 Changed 8 years ago by eblot

#203 has been marked as a duplicate

comment:4 Changed 8 years ago by eblot

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

comment:5 Changed 8 years ago by eblot

  • Trac Release set to 0.8

comment:6 Changed 8 years ago by eblot

  • Trac Release changed from 0.8 to 0.10

comment:7 Changed 8 years ago by anonymous

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from anonymous. Next status will be 'closed'.
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.