Edgewall Software
Modify

Opened 3 years ago

Closed 3 years ago

Last modified 5 months ago

#12556 closed defect (cantfix)

AttributeError: 'bool' object has no attribute 'lower'

Reported by: dennis.liou@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.0.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Hello , I am new with trac and now trying ldap with trac, but not successed. Now, I met a bug. Please help me solve the problem, thanks.

How to Reproduce

While doing a GET operation on /, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Dragon/49.13.20.402 Chrome/49.0.2623.110 Safari/537.36

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 512, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 221, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/wiki/web_ui.py", line 134, in process_request
    req.perm(versioned_page.resource).require('WIKI_VIEW')
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 577, in require
    if not self._has_permission(action, resource):
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 568, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 460, in check_permission
    perm)
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 294, in check_permission
    get_user_permissions(username)
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 396, in get_user_permissions
    for perm in self.store.get_user_permissions(username) or []:
  File "build/bdist.linux-x86_64/egg/ldapplugin/api.py", line 209, in get_user_permissions
    users += list(provider.get_permission_groups(username))
  File "build/bdist.linux-x86_64/egg/ldapplugin/api.py", line 108, in get_permission_groups
    self._ldap = LdapConnection(self.env.log, bind, **self._ldapcfg)
  File "build/bdist.linux-x86_64/egg/ldapplugin/api.py", line 540, in __init__
    self.__setattr__(k, v.lower() in _TRUE_VALUES)
AttributeError: 'bool' object has no attribute 'lower'

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 3 years ago

Priority: highestnormal
Resolution: cantfix
Severity: blockernormal
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.