Bug 781450

Summary: Wrong status code for unauthenticated JSON requests
Product: [Retired] CloudForms Cloud Engine Reporter: Jan Provaznik <jprovazn>
Component: aeolus-conductorAssignee: Jan Provaznik <jprovazn>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, slinaber, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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