Edgewall Software

Opened 10 years ago

Closed 10 years ago

#10596 closed defect (duplicate)

RuntimeError: instance.__dict__ not accessible in restricted mode

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


How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'a2a2a73aa54b384302f59a75',
 'password': u'lamer0k',
 'referer': u'http://net-ip-tools.evernet.lutsk.ua',
 'user': u'astro'}

User agent: Opera/9.80 (X11; Linux x86_64; U; uk) Presto/2.10.229 Version/11.61

System Information

Trac 0.12.2
Babel 0.9.6
Bitten 0.6.1dev-r1009
Genshi 0.6
mod_wsgi 2.8 (WSGIProcessGroup WSGIApplicationGroup net-ip-tools.evernet.lutsk.ua|)
psycopg2 2.4
Python 2.7.2 (default, Feb 27 2012, 23:09:23)
[GCC 4.2.1 20070719 [FreeBSD]]
pytz 2011c
setuptools 0.6c11
Subversion 1.6.16 (r1073529)
jQuery 1.4.2

Enabled Plugins

Bitten 0.6.1dev-r1009
TracAccountManager 0.3.2

Python Traceback

Traceback (most recent call last):
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/web/main.py", line 511, in _dispatch_request
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/web/main.py", line 202, in dispatch
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/web/main.py", line 344, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/versioncontrol/api.py", line 330, in pre_process_request
    repo = self.get_repository(reponame)
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/versioncontrol/api.py", line 526, in get_repository
    repos = connector.get_repository(rtype, rdir, repoinfo.copy())
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/versioncontrol/svn_fs.py", line 304, in get_repository
    fs_repos = SubversionRepository(dir, params, self.log)
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/versioncontrol/svn_fs.py", line 318, in __init__
    self.pool = Pool()
  File "build/bdist.freebsd-8.2-RELEASE-p1-i386/egg/trac/versioncontrol/svn_fs.py", line 153, in __init__
    self._pool = core.svn_pool_create(self._parent_pool())
  File "/usr/local/lib/python2.7/site-packages/svn/core.py", line 241, in svn_pool_create
    return Pool(parent_pool)
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 1555, in svn_pool_create
    return apply(_core.svn_pool_create, args)
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 5738, in _wrap
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 5651, in set_parent_pool
    self._parent_pool = parent_pool or application_pool
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 5639, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, apr_pool_t, name, value)
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 24, in _swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 19, in _swig_setattr_nondynamic
    self.__dict__[name] = value
RuntimeError: instance.__dict__ not accessible in restricted mode

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 10 years ago

Resolution: duplicate
Status: newclosed

You already submitted #10591, in which we told you to fix your setup…

(WSGIApplicationGroup should be set to %{GLOBAL})

… and now you're also bound to change your password ;-)

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.