Edgewall Software

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):  
    275275        if isinstance(req.session, FakeSession):
    276276            return FakePerm()
    277277        else:
    278             return PermissionCache(self.env, self.authenticate(req))
     278            return PermissionCache(self.env, req.authname)
    279279
    280280    def _get_session(self, req):
    281281        try:

Change History (0)

Note: See TracTickets for help on using tickets.