#2036: TG gives 500 server error instead of 403 or 404
-------------------------------------------------------+--------------------
 Reporter:  chrisz                                     |        Owner:  faide
     Type:  defect                                     |       Status:  new  
 Priority:  normal                                     |    Milestone:  1.1  
Component:  TurboGears                                 |      Version:  1.0.7
 Severity:  minor                                      |   Resolution:       
 Keywords:  JSON, NoApplicableMethods, SecureResource  |  
-------------------------------------------------------+--------------------
Comment (by Chris Arndt):

 Actually, I can't reproduce the problem. I have build an example project
 that calls a sub-controller method via "loadJSONDoc", which has a
 `expose('json')` decorator and the sub-controller is protected via
 `SecureResource`. When I'm not loged in, I get a 401 response.

 See the attached tarball `Test2036-1.0.tar.bz2` with the example project.
 Start the project an click on the "Get time" link to test. Should give a
 JS alert box with the HTTP status code. Then dd a user and log in to see
 it working.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2036#comment:5>
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