Opened 9 years ago
Last modified 9 years ago
#12101 closed defect
IAuthenticator.authenticate() is called twice on each request — at Initial Version
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.7 |
Component: | general | Version: | |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
$ egrep 'auth_cookie|Dispatch' log/trac.log 2015-06-04 21:50:00,165 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/'"> 2015-06-04 21:50:00,167 Trac[util] DEBUG: SQL: SELECT name FROM auth_cookie WHERE cookie=%s 2015-06-04 21:50:00,170 Trac[util] DEBUG: SQL: SELECT name FROM auth_cookie WHERE cookie=%s
-
trac/web/main.py
diff --git a/trac/web/main.py b/trac/web/main.py index 7694bea..fafe088 100644
a b class RequestDispatcher(Component): 275 275 if isinstance(req.session, FakeSession): 276 276 return FakePerm() 277 277 else: 278 return PermissionCache(self.env, self.authenticate(req))278 return PermissionCache(self.env, req.authname) 279 279 280 280 def _get_session(self, req): 281 281 try:
Note:
See TracTickets
for help on using tickets.