Modify

Opened 5 years ago

Last modified 17 months ago

#5909 assigned defect

Users can't log out

Reported by: anonymous Owned by: txcraig
Priority: normal Component: HttpAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When HttpAuthPlugin is enabled user can't log out.

I'm running Trac 0.11 via tracd and I've got the following plugins: XMLRpcPlugin, AccountManager.

Attachments (0)

Change History (3)

comment:1 in reply to: ↑ description Changed 5 years ago by anonymous

Replying to anonymous:

When HttpAuthPlugin is enabled user can't log out.

I'm running Trac 0.11 via tracd and I've got the following plugins: XMLRpcPlugin, AccountManager.

I'd like to provide more information. It seems that user who is logged to the system via XMLRpc can't be logged out using Logout on the webpage. Maybe it is deliberate behaviour, but I don't know about that.

comment:2 Changed 5 years ago by anonymous

I also have problem with logout. I am getting same error if I am not logged in and I try to access any page except first one.

Here are parts of configuration:

[account-manager]
account_changes_notify_addresses = 
htdigest_realm = TracRealm
notify_actions = new,change,delete
password_file = D:\trac\trac.htdigest
password_store = HtDigestStore

[httpauth]
paths = /wiki/Servers

Here is stack trace:

Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\trac\web\api.py", line 367, in send_error
    'text/html')
  File "C:\Python25\lib\site-packages\trac\web\chrome.py", line 688, in render_template
    data = self.populate_data(req, data)
  File "C:\Python25\lib\site-packages\trac\web\chrome.py", line 596, in populate_data
    d['chrome'].update(req.chrome)
  File "C:\Python25\lib\site-packages\trac\web\api.py", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "C:\Python25\lib\site-packages\trac\web\chrome.py", line 464, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 379, in get_navigation_items
    if req.authname == 'anonymous':
  File "C:\Python25\lib\site-packages\trac\web\api.py", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "C:\Python25\lib\site-packages\trac\web\main.py", line 132, in authenticate
    authname = authenticator.authenticate(req)
  File "build\bdist.win32\egg\httpauth\filter.py", line 63, in authenticate
    user = self._check_password(req)
  File "build\bdist.win32\egg\httpauth\filter.py", line 74, in _check_password
    user, passwd = b64decode(token).split(':', 1)
ValueError: need more than 1 value to unpack

comment:3 Changed 17 months ago by txcraig

  • Owner changed from coderanger to txcraig
  • Status changed from new to assigned

I am adopting this plugin.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.