Edgewall Software

Opened 5 years ago

Closed 5 years ago

Last modified 3 years 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:
Internal Changes:


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/ 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
  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
  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
  File "build/bdist.linux-x86_64/egg/trac/perm.py", line 294, in check_permission
  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, 5 years ago

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to 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.