Bug 782242

Summary: aeolus conductor does not redirect to original URL if unauthenticated
Product: [Retired] CloudForms Cloud Engine Reporter: wes hayutin <whayutin>
Component: aeolus-conductorAssignee: Ken Keiter <kenkeiter>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, athomas, cpelland, deltacloud-maint, hbrock, matt.wagner, 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: 2012-05-15 21:39:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description wes hayutin 2012-01-16 22:19:37 UTC
Description of problem:

1. make sure you are not authenticated to conductor
2. paste in an URL ie..https://qeblade32.rhq.lab.eng.bos.redhat.com/conductor/images/073e6788-ed03-4200-a762-d0237e1fa8ae   or something like it..

3. you are redirected to the login... 
4. after logging in you should be redirected to the url in step #2

actual results.. 

land on default page..

booo!


[root@qeblade32 builders]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.8.0-5.el6.noarch
rubygem-aeolus-cli-0.3.0-3.el6.noarch
rubygem-aeolus-image-0.3.0-2.el6.noarch
aeolus-all-0.8.0-5.el6.noarch
aeolus-configure-2.5.0-4.el6.noarch
aeolus-conductor-0.8.0-5.el6.noarch
aeolus-conductor-daemons-0.8.0-5.el6.noarch
[root@qeblade32 builders]#

Comment 1 Ken Keiter 2012-02-02 20:16:51 UTC
Fixed the issue by storing the original destination in session. Setup redirect
for both JS-enabled and non-js-enabled clients.

I sent a patch to deltacloud-internal list with the subject: [DELTACLOUD-INTERNAL] [PATCH] Fixed login redirect-to-original-destination issue (BZ 782242).

Comment 2 Matt Wagner 2012-02-03 19:20:47 UTC
Pushed:

commit a770e8028ef0304fee0f0aa1a3e79b8b863bbade
Author: Kenneth Keiter <ken>
Date:   Thu Feb 2 12:13:27 2012 -0800

    Fixed login redirect-to-original-destination issue (BZ 782242).
    
    Signed-off-by: Matt Wagner <matt.wagner>

Comment 3 wes hayutin 2012-02-10 22:04:52 UTC
woot.. works in

[root@qeblade32 yum.repos.d]# rpm -qa | grep aeolus
aeolus-conductor-daemons-0.8.0-25.el6.noarch
aeolus-conductor-doc-0.8.0-25.el6.noarch
aeolus-configure-2.5.0-12.el6.noarch
rubygem-aeolus-image-0.3.0-7.el6.noarch
aeolus-conductor-0.8.0-25.el6.noarch
rubygem-aeolus-cli-0.3.0-8.el6.noarch
aeolus-all-0.8.0-25.el6.noarch
[root@qeblade32 yum.repos.d]#

Comment 4 errata-xmlrpc 2012-05-15 21:39:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0583.html