Modify

Opened 8 years ago

Closed 8 years ago

#4842 closed defect (duplicate)

post_process_request does not correctly pass content type

Reported by: anonymous Owned by: Carlos López Pérez
Priority: high 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

     
    5353
    5454    def post_process_request(self, req, template, data, content_type):
    5555        if not req.remote_user or req.session.has_key('email'):
    56             return template, data, None
     56            return template, data, content_type
    5757        uid = req.remote_user.lower()
    5858        name, email = self._getUserAttributes(uid)
    5959        req.session['name'] = name
    6060        req.session['email'] = email
    61         return template, data, None
     61        return template, data, content_type
    6262    #
    6363    #----------------------------------------- INavigationContributor interface
    6464    #

This issue was a blocker for our new install.

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by Ryan Witt

Resolution: duplicate
Status: newclosed

sorry! forgot to log in!

duplicate of #4843

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Carlos López Pérez.
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.