Modify ↓
#11495 closed defect (fixed)
no such table: ad_cache
Reported by: | patrick | Owned by: | patrick |
---|---|---|---|
Priority: | normal | Component: | DirectoryAuthPlugin |
Severity: | normal | Keywords: | TracDirectoryAuth 1.0.1 |
Cc: | Trac Release: | 1.0 |
Description
Hi,
I noticed the following warning message appearing over and over in my trac log when using the DirectoryAuthPlugin:
Trac[auth] WARNING: _dir_search: db cache update failed. no such table: ad_cache
As the warning message indicates, no ad_cache table exists when I checked the database. It seems that this might be a side-effect of some refactoring.
At db.py#L22 the name of the database created is dir_cache.
Replacing the instances of ad_cache in auth.py fixes this problem and no further warnings are in the log.
I have attached a patch.
Thanks,
Patrick
Attachments (1)
Change History (5)
Changed 11 years ago by
Attachment: | auth_patch.diff added |
---|
comment:1 Changed 11 years ago by
Owner: | changed from branson to Ryan J Ollos |
---|---|
Status: | new → accepted |
Duplicate of #11007. Issue had been resolved and fixed but was reverted for unknown reason and without explanation by the author (see comment:11:ticket:11007). I will apply the fix again.
comment:4 Changed 11 years ago by
Owner: | changed from Ryan J Ollos to patrick |
---|
Note: See
TracTickets for help on using
tickets.
ad_cache to dir_cache patch