Modify

Opened 14 months ago

Closed 9 months ago

#14250 closed defect (fixed)

TracHTTPAuth positional arguments error on Trac 1.6

Reported by: Gea-Suan Lin Owned by: Jun Omae
Priority: normal Component: HttpAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.6

Description

We got errors in Trac 1.6:

Trac detected an internal error:
TypeError: HTTPAuthFilter.post_process_request() takes 4 positional arguments but 5 were given

it would "work" (but not tested whether it's functionally correct) if we changed from the first one to the second one:

    def post_process_request(self, req, template, content_type):
    def post_process_request(self, req, template, content_type, metadata=None, method=None):

Attachments (0)

Change History (5)

comment:2 Changed 14 months ago by Gea-Suan Lin

Thanks, I found the "official" way to allow XmlRpcPlugin and AccountManagerPlugin working together, from https://trac-hacks.org/wiki/XmlRpcPlugin#ProblemswhenAccountManagerPluginisenabled:

[account-manager]
environ_auth_overwrite = false

This way works and I have uninstalled TracHTTPAuth. I guess we can close this ticket if TracHTTPAuth is not maintained anymore.

comment:3 Changed 9 months ago by Jun Omae

In 18627:

TracHTTPAuth: fix incorrect parameters of IRequestHandler.post_process_request (refs #14250)

comment:4 Changed 9 months ago by Jun Omae

Owner: changed from txcraig to Jun Omae
Status: newaccepted
Trac Release: 1.6

comment:5 Changed 9 months ago by Jun Omae

Resolution: fixed
Status: acceptedclosed

In 18629:

TracHTTPAuth: make compatible with Python 3 and Trac 1.6 (closes #14250)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
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.