View Issue Details

IDProjectCategoryView StatusLast Update
332RackTablesdefaultpublic2010-11-29 13:24
Reporterinfrastation Assigned Touser145 
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.17.0 
Target Version0.17.11Fixed in Version0.17.11 
Summary332: LDAP cache expires earlier, than configured
DescriptionSQL constructs used in functions acquireLDAPCache() and discardLDAPCache() are incorrect:

"now() - first_success as success_age" >= real success_age
"now() - last_retry as retry_age" >= real retry_age

This happens because of timestamps being converted into strings and then to integers before subtraction (difference between 2000-01-01 18:00:00 and 2000-01-01 19:00:00 this way becomes 10000, not 3600). The correct way to find number of seconds between ts1 and ts2 (where ts2 > ts1) is:

TIMESTAMPDIFF(SECOND, ts1, ts2)
TagsNo tags attached.

Activities

user145

2010-05-09 19:11

  ~0000066

committed to the trunk and the maint branch.

Issue History

Date Modified Username Field Change
2010-05-06 14:55 infrastation New Issue
2010-05-06 14:56 infrastation Status new => confirmed
2010-05-06 14:56 infrastation Target Version => 0.17.11
2010-05-09 19:07 user145 Status confirmed => assigned
2010-05-09 19:07 user145 Assigned To => user145
2010-05-09 19:11 user145 Note Added: 0000066
2010-05-09 19:11 user145 Status assigned => resolved
2010-05-09 19:11 user145 Fixed in Version => 0.17.11
2010-05-09 19:11 user145 Resolution open => fixed
2010-11-29 13:24 infrastation Status resolved => closed