Edgewall Software
Modify

Opened 7 years ago

Closed 7 years ago

#12996 closed defect (cantfix)

AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Reported by: user Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'cat_id': u'accounts', 'panel_id': u'users', 'path_info': None}

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

System Information

Trac 1.2.2
Babel 0.9.6
Genshi 0.6 (without speedups)
GIT 2.14.1.windows.1
mod_wsgi 3.5 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
pysqlite 2.6.3
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
setuptools 20.9.0
SQLite 3.7.6.2
jQuery 1.11.3
jQuery UI 1.11.4
jQuery Timepicker 1.5.5

Enabled Plugins

tracusermanagerplugin 0.5.dev0

Interface Customization

Python Traceback

Traceback (most recent call last):
  File "build\bdist.win32\egg\trac\web\main.py", line 623, in _dispatch_request
    dispatcher.dispatch(req)
  File "build\bdist.win32\egg\trac\web\main.py", line 239, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\trac\admin\web_ui.py", line 109, in process_request
    provider.render_admin_panel(req, cat_id, panel_id, path_info)
  File "build\bdist.win32\egg\tracusermanager\admin.py", line 124, in render_admin_panel
    um_data.update(users = UserManager(self.env).get_active_users())
  File "build\bdist.win32\egg\tracusermanager\api.py", line 172, in get_active_users
    return self.search_users()
  File "build\bdist.win32\egg\tracusermanager\api.py", line 215, in search_users
    for username in self.user_store.search_users()]
  File "build\bdist.win32\egg\tracusermanager\api.py", line 321, in search_users
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 7 years ago

Resolution: cantfix
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 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.