id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
4843,post_process_request does not correctly pass content type,onecreativenerd,rjollos,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.\r\n\r\nHere's a patch that fixes it:\r\n\r\n{{{\r\n#!diff\r\nIndex: accountldap/accountldap.py\r\n===================================================================\r\n--- accountldap/accountldap.py (revision 5415)\r\n+++ accountldap/accountldap.py (working copy)\r\n@@ -53_12 +53_12 @@\r\n\r\n     def post_process_request(self_ req_ template_ data_ content_type):\r\n         if not req.remote_user or req.session.has_key('email'):\r\n-            return template_ data_ None\r\n+            return template_ data_ content_type\r\n         uid = req.remote_user.lower()\r\n         name_ email = self._getUserAttributes(uid)\r\n         req.session['name'] = name\r\n         req.session['email'] = email\r\n-        return template_ data_ None\r\n+        return template_ data_ content_type\r\n     #\r\n     #----------------------------------------- INavigationContributor interface\r\n     #\r\n}}}\r\n\r\nThis issue was a blocker for our new install.,defect,closed,normal,AccountLdapPlugin,blocker,fixed,,,0.11
