Bug 1321007

Summary: Clicking a link or visiting a url while logged out does not properly redirect to original destination
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: WebUIAssignee: Shlomi Zadok <szadok>
WebUI sub component: Foreman QA Contact: Roman Plevka <rplevka>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: bbuckingham, ehelms, jhutar, jpazdziora, rplevka, sthirugn, zhunting
Version: 6.2.0Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14072
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:00:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin Sherrill 2016-03-24 13:04:07 UTC
Description of problem:

For some reason the login redirect isn't working properly.  It always dumps the user to the hosts page.


Version-Release number of selected component (if applicable):
6.2 Snap4


How reproducible:
Always

Steps to Reproduce:
1. Log out 
2. Go to some url such as https://hostname/content_hosts
3. Login

Actual results:
You get redirected to  /hosts

Expected results:
redirects you to where you were trying to go


Additional info:
No idea if this has anything to do with katello being present or not, it seemed to start as part of the upgrade to rails 4

This is super annoying

Comment 2 Zach Huntington-Meath 2016-04-29 14:32:44 UTC
*** Bug 1330889 has been marked as a duplicate of this bug. ***

Comment 3 Zach Huntington-Meath 2016-04-29 14:39:00 UTC
Created redmine issue http://projects.theforeman.org/issues/14886 from this bug

Comment 4 Zach Huntington-Meath 2016-04-29 15:13:40 UTC
This was actually already fixed a big ago in foreman https://github.com/theforeman/foreman/pull/3440

Comment 5 Zach Huntington-Meath 2016-04-29 15:23:31 UTC
Connecting redmine issue http://projects.theforeman.org/issues/14072 from this bug

Comment 6 Jan Pazdziora 2016-05-04 15:19:36 UTC
Is there downstream commit SHA1 of the cherry pick available?

Comment 7 Roman Plevka 2016-05-06 12:53:13 UTC
VERIFIED
on sat6.2.0 snap10 (GA 10.0)
- user now lands on the requested page with respecting his/her permissions (error message appears if he/she lacks any permissions to view the resource)

Comment 9 Bryan Kearney 2016-07-27 11:00:12 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.

https://access.redhat.com/errata/RHBA-2016:1501