Bug 781450 - Wrong status code for unauthenticated JSON requests
Summary: Wrong status code for unauthenticated JSON requests
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Jan Provaznik
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-13 13:23 UTC by Jan Provaznik
Modified: 2012-08-30 17:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Jan Provaznik 2012-01-13 13:23:16 UTC
If a user is not authenticated, JSON response "You must be logged in to access this page" with status code 200 is returned.

401 status code should be returned.

Comment 1 Jan Provaznik 2012-01-13 14:16:35 UTC
patch is on the list: https://fedorahosted.org/pipermail/aeolus-devel/2012-January/008078.html

Comment 2 Jan Provaznik 2012-01-18 08:23:36 UTC
pushed, commit 1310ebaa5e496900e371d26d6c670ae624750d6a

Comment 3 Steve Linabery 2012-01-18 21:02:18 UTC
aeolus-conductor-0.8.0-8.el6.src.rpm
942cd20b2105d6d69c606941ba6a91f86b18e9fc

Comment 4 Shveta 2012-01-20 12:58:30 UTC
rails.log
=========================================


 Processing by UserSessionsController#unauthenticated as JS
  Parameters: {"_password"=>"[FILTERED]", "authenticity_token"=>"U9N/rCgpu8ou8Ct2/BzIeJ05Y/c7hsPJeeZC6PsbSeA=", "utf8"=>"✓", "password"=>"[FILTERED]", "login"=>"admin"}
Request is unauthenticated for 127.0.0.1
Rendered text template (0.0ms)
Completed 401 Unauthorized in 2ms (Views: 0.5ms | ActiveRecord: 10.3ms)
==============================================


status 401 is returned.

verified in 
rpm -qa|grep aeolus
aeolus-conductor-0.8.0-8.el6.noarch
aeolus-configure-2.5.0-5.el6.noarch
aeolus-conductor-daemons-0.8.0-8.el6.noarch
rubygem-aeolus-image-0.3.0-3.el6.noarch
rubygem-aeolus-cli-0.3.0-4.el6.noarch
aeolus-conductor-doc-0.8.0-8.el6.noarch
aeolus-all-0.8.0-8.el6.noarch


Note You need to log in before you can comment on or make changes to this bug.