Modify ↓
Opened 4 years ago
Closed 18 months ago
#4843 closed defect (fixed)
post_process_request does not correctly pass content type
| Reported by: | onecreativenerd | Owned by: | rjollos |
|---|---|---|---|
| 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 18 months ago by anonymous
comment:2 Changed 18 months ago by rjollos
- Owner changed from clp to rjollos
- Status changed from new to assigned
comment:3 Changed 18 months ago by rjollos
I'll see about getting this committed to the repository, to avoid more reports like #9611 (closed as duplicate).
comment:4 Changed 18 months ago by rjollos
- Resolution set to fixed
- Status changed from assigned to 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