Modify ↓
Opened 7 months ago
Last modified 3 months ago
#10667 new defect
Unicode number not converted to Integer
| Reported by: | myingling | Owned by: | sandinak |
|---|---|---|---|
| Priority: | normal | Component: | DirectoryAuthPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.0 |
Description (last modified by rjollos)
I tuned the cache to 0, as mentioned on the caching page so I could try debugging something. Then I started getting warnings about Unicode not being an Int.
In r12025, there is the following section:
425 if last_prune + self.cache_memsize_warn > now:
426 self.env.log.info('pruning memcache in less than %d seconds, you might increase cache_memsize.' % int(self.cache_memsize_warn))
427
428 self.env.log.debug('pruning memcache by %d: (current: %d > max: %d )' % (self.cache_memprune, len(self._cache), int(self.cache_memsize)))
429 cache_keys = self._cache.keys()
I believe 'self.cache_memsize_warn' needs to be wrapped in an int cast, or 'int(self.cache_memsize_warn)' everywhere it is used. This change appeared to fix it for me. I'm not sure if there are other places this much be changed as well.
Attachments (0)
Change History (2)
comment:1 Changed 7 months ago by anonymous
comment:2 Changed 3 months ago by rjollos
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.


The file is auth.py. Sorry for the messed up formatting of the ticket.