Opened 7 years ago

Closed 6 years ago

#8562 closed defect (fixed)

IndexError: list index out of range

Reported by: anonymous Owned by: Steffen Hoffmann
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: password file
Cc: Trac Release: 0.11


How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'fff348fb504632cf87860733',
 'add': u' Add ',
 'cat_id': u'accounts',
 'email': u'xx',
 'name': u'\uc774\uc9c0\uc131',
 'panel_id': u'users',
 'password': u'xx',
 'password_confirm': u'xx',
 'path_info': None,
 'user': u'xx'}

User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)

System Information

Trac 0.12.2
Babel 0.9.5
Genshi 0.6
mod_wsgi 3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
pysqlite 2.6.0
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
setuptools 0.6c11
SQLite 3.6.21
Subversion 1.6.15 (r1038135)
jQuery 1.4.2

Enabled Plugins

tracaccountmanager 0.3dev-r9923

Python Traceback

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\trac\web\", line 511, in _dispatch_request
  File "C:\Python27\lib\site-packages\trac\web\", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python27\lib\site-packages\trac\admin\", line 116, in process_request
  File "build\bdist.win32\egg\acct_mgr\", line 132, in render_admin_panel
    return self._do_users(req)
  File "build\bdist.win32\egg\acct_mgr\", line 211, in _do_users
    _create_user(req, self.env, check_permissions=False)
  File "build\bdist.win32\egg\acct_mgr\", line 145, in _create_user
    mgr.set_password(user, password)
  File "build\bdist.win32\egg\acct_mgr\", line 263, in set_password
    if store.set_password(user, password, old_password):
  File "build\bdist.win32\egg\acct_mgr\", line 53, in set_password
    self.userline(user, password))
  File "build\bdist.win32\egg\acct_mgr\", line 107, in _update_file
    if lines[0].endswith('\r') and os.linesep == '\r':
IndexError: list index out of range

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by Ryan J Ollos

Component: SELECT A HACKAccountManagerPlugin
Owner: changed from anonymous to Steffen Hoffmann

Yet another incorrectly filed ticket.

comment:2 Changed 6 years ago by Steffen Hoffmann

Keywords: password file added
Resolution: fixed
Status: newclosed

Seems like there has been an empty file in this case.

Don't use this development version anymore. This has been worked on months before starting with [9923], and there is not only one more recent, stable release: acct_mgr-0.3.1 these days, that will not show this behavior after [9927].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Steffen Hoffmann.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.