Modify ↓
Opened 19 years ago
Closed 19 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)
Change History (8)
Changed 19 years ago by
Attachment: | model.patch added |
---|
comment:1 Changed 19 years ago by
Owner: | changed from Emmanuel Blot to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 19 years ago by
Priority: | normal → high |
---|
comment:5 Changed 19 years ago by
Trac Release: | → 0.8 |
---|
comment:6 Changed 19 years ago by
Trac Release: | 0.8 → 0.10 |
---|
comment:7 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Cast cache_ttl to float in model.py