Modify

Opened 14 years ago

Closed 14 years ago

#7147 closed defect (duplicate)

AttributeError: 'TracError' object has no attribute 'acctmgr' - raised when registering new account

Reported by: chenj@… Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

AccountManagerPlugin: trunk-r7966

When use "HtPasswdStore" and not correctly set permission of the password file and its parent directory, _create_user will pass a TracError without an "acctmgr" attribute, which is raised in _update_file(htfile.py:96).

The patch in attachment will ensure _create_user catches any TracError and adds an "acctmgr" attribute.

Attachments (1)

web_ui.diff (4.3 KB) - added by chenj@… 14 years ago.
patch against web_ui.py

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by chenj@…

Attachment: web_ui.diff added

patch against web_ui.py

comment:1 Changed 14 years ago by anonymous

Trac Release: 0.110.12

comment:2 Changed 14 years ago by Steffen Hoffmann

Summary: Register a new account may cause "AttributeError: 'TracError' object has no attribute 'acctmgr' "AttributeError: 'TracError' object has no attribute 'acctmgr' - raised when registering new account

#7063 is related, but has less information regarding the exact situation, when the error is raised.

comment:3 Changed 14 years ago by Steffen Hoffmann

Keywords: acctmgr removed

See #4040.

comment:4 Changed 14 years ago by Steffen Hoffmann

Resolution: duplicate
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.