Modify

Opened 10 years ago

Closed 9 years ago

#12354 closed defect (fixed)

TypeError: not all arguments converted during string formatting

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: DirectoryAuthPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 284, in _get_locale
    preferred = req.session.get('language')
  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/api.py", line 355, in __getattr__
    value = self.callbacks[name](self)
  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 276, in _get_session
    return Session(self.env, req)
  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/session.py", line 204, in __init__
    if req.authname == 'anonymous':
  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/api.py", line 355, in __getattr__
    value = self.callbacks[name](self)
  File "<path>/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 137, in authenticate
    authname = authenticator.authenticate(req)
  File "<path>/pve/local/lib/python2.7/site-packages/acct_mgr/util.py", line 82, in wrap
    return func(self, *args, **kwds)
  File "<path>/pve/local/lib/python2.7/site-packages/acct_mgr/web_ui.py", line 338, in authenticate
    user = self._remote_user(req)
  File "<path>/pve/local/lib/python2.7/site-packages/acct_mgr/web_ui.py", line 684, in _remote_user
    if acctmgr.check_password(user, password) == True:
  File "<path>/pve/local/lib/python2.7/site-packages/acct_mgr/api.py", line 259, in check_password
    valid = store.check_password(user, password)
  File "<path>/pve/local/lib/python2.7/site-packages/tracext/dirauth/auth.py", line 176, in check_password
    self._populate_user_session(user_info)
  File "<path>/pve/local/lib/python2.7/site-packages/tracext/dirauth/auth.py", line 394, in _populate_user_session
    """, (uname, to_unicode(email)))
  File "<path>/pve/local/lib/python2.7/site-packages/trac/db/util.py", line 72, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "<path>/pve/local/lib/python2.7/site-packages/trac/db/sqlite_backend.py", line 80, in execute
    result = PyFormatCursor.execute(self, *args)
  File "<path>/pve/local/lib/python2.7/site-packages/trac/db/sqlite_backend.py", line 56, in execute
    sql = sql % (('?',) * len(args))
TypeError: not all arguments converted during string formatting

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 14694:

2.0.0dev: Removed incorrect quoting in query string. Fixes #12354.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.