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:1 Changed 14 months ago by
comment:2 Changed 14 months ago by
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:4 Changed 9 months ago by
Owner: | changed from txcraig to Jun Omae |
---|---|
Status: | new → accepted |
Trac Release: | → 1.6 |
Note: See
TracTickets for help on using
tickets.
See TracDev/PortingFromGenshiToJinja#ImplementIRequestFilter.post_process_requesttoconditionallyaddJavaScriptcode.