Modify ↓
Opened 16 years ago
Closed 13 years ago
#4843 closed defect (fixed)
post_process_request does not correctly pass content type
Reported by: | Ryan Witt | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | AccountLdapPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
AccountLdapPlugin blocks other plugins from changing the content type of their response. This was a problem for me and kept RevtreePlugin from rendering its SVG.
Here's a patch that fixes it:
-
accountldap/accountldap.py
53 53 54 54 def post_process_request(self, req, template, data, content_type): 55 55 if not req.remote_user or req.session.has_key('email'): 56 return template, data, None56 return template, data, content_type 57 57 uid = req.remote_user.lower() 58 58 name, email = self._getUserAttributes(uid) 59 59 req.session['name'] = name 60 60 req.session['email'] = email 61 return template, data, None61 return template, data, content_type 62 62 # 63 63 #----------------------------------------- INavigationContributor interface 64 64 #
This issue was a blocker for our new install.
Attachments (0)
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Owner: | changed from Carlos López Pérez to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:3 Changed 13 years ago by
I'll see about getting this committed to the repository, to avoid more reports like #9611 (closed as duplicate).
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This patch was applied to the 0.12 branch in [5428]. The 0.11 branch has a README that says to use the 0.12 branch.
Note: See
TracTickets for help on using
tickets.
Thanks for posting this. This also caused problems with the datefield plugin on my install