Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#12342 closed defect (cantfix)

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

Reported by: joao.dias.brito@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.2dev
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 6#3; WOW64; Trident/7#0; #NET4#0E; #NET4#0C; #NET CLR 3#5#30729; #NET CLR 2#0#50727; #NET CLR 3#0#30729; rv:11#0# like Gecko

System Information

Trac 1#2dev
Genshi 0#7 #without speedups#
pysqlite 2#4#1
Python 2#6#4 #r264:75708, Oct 26 2009, 08:23:19# #MSC v#1500 32 bit #Intel##
setuptools 19#6#2
SQLite 3#5#9
jQuery 1#8#3
jQuery UI 1#9#2
jQuery Timepicker 1#1#1

Enabled Plugins

tracaccountmanager 0#5#dev0
tracusermanagerplugin 0#5#dev0
tracwebadmin 0#1#2dev-r0

Interface Customization

Python Traceback

Traceback #most recent call last#:
  File "build\bdist#win32\egg\trac\web\main#py", line 607, in _dispatch_request
    dispatcher#dispatch#req#
  File "build\bdist#win32\egg\trac\web\main#py", line 256, in dispatch
    resp = chosen_handler#process_request#req#
  File "build\bdist#win32\egg\trac\admin\web_ui#py", line 108, 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 userna#e 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 Christian Boos, 9 years ago

Resolution: cantfix
Status: newclosed

PluginIssue and duplicate of #11783 (see also #12334).

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.