AuthenticationSupport access_denied for xml returns wrong status code
Reported by Betelgeuse | October 11th, 2010 @ 08:08 AM | in Hobo 1.1
While browsing hobo code noticed this bug:
betelgeuse@mac ~/checkouts/hobo $ grep render hobo/lib/hobo/authentication_support.rb
render :text => ht("hobo.messages.unauthenticated", :default=>["Couldn't authenticate you"], :status => '401 Unauthorized')
Here status is passed to ht instead of render so the returned status code is 200 Ok.
Comments and changes to this ticket
-
Domizio Demichelis October 12th, 2010 @ 07:09 PM
Just a note: I fixed that in the i18n branch a few months ago. Now the i18n branch has been merged with the rails3 branch so there is no problem with the 1.3.0.* version, but it has to be fixed in the other versions.
-
Bryan Larsen November 15th, 2010 @ 09:08 PM
- State changed from new to open
- Milestone set to Hobo 1.1
- Milestone order changed from 197909 to 0
-
Bryan Larsen November 20th, 2010 @ 07:51 PM
- State changed from open to resolved
(from [7fce753982538500c1e576e8d27ac9164b82f1cc]) [#830 state:resolved] AuthenticationSupport access_denied for xml returns wrong status code https://github.com/tablatom/hobo/commit/7fce753982538500c1e576e8d27...
-
Bryan Larsen February 25th, 2011 @ 06:46 PM
(from [8e42a2829f707788b94009cd76997d1b366ab9de]) [#830 state:resolved] AuthenticationSupport access_denied for xml returns wrong status code https://github.com/tablatom/hobo/commit/8e42a2829f707788b94009cd769...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Tags
Referenced by
- 830 AuthenticationSupport access_denied for xml returns wrong status code (from [7fce753982538500c1e576e8d27ac9164b82f1cc]) [#830 s...
- 830 AuthenticationSupport access_denied for xml returns wrong status code (from [8e42a2829f707788b94009cd76997d1b366ab9de]) [#830 s...