Modify

Opened 4 years ago

Closed 4 years ago

#7147 closed defect (duplicate)

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

Reported by: chenj@… Owned by: mgood
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@… 4 years ago.
patch against web_ui.py

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by chenj@…

patch against web_ui.py

comment:1 Changed 4 years ago by anonymous

  • Trac Release changed from 0.11 to 0.12

comment:2 Changed 4 years ago by hasienda

  • Summary changed from Register a new account may cause "AttributeError: 'TracError' object has no attribute 'acctmgr' " to 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 4 years ago by hasienda

  • Keywords acctmgr removed

See #4040.

comment:4 Changed 4 years ago by hasienda

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from mgood. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.