#2459: Crash when user agent doesn't specify the HTTP_ACCEPT header accessing a
controller method with repoze restrictions
------------------------+---------------------------------------------------
 Reporter:  amol        |       Owner:              
     Type:  defect      |      Status:  new         
 Priority:  normal      |   Milestone:  2.0.* bugfix
Component:  TurboGears  |     Version:  2.0.3       
 Severity:  normal      |    Keywords:              
------------------------+---------------------------------------------------
 If you try to access a controller method that specifies a @require (like
 user being authenticated) without specifying "Accept:" header and without
 meeting the requirements you will get "TypeError: You cannot set
 Response.body to a unicode object (use Response.unicode_body)"

 You can easily reproduce the error by trying to access a
 @require(predicates.not_anonymous()) method with "curl -H 'Accept: '
 http://localhost:8080/method";

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2459>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

-- 
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en

Reply via email to