Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1108783

Summary: there seems to be infinite redirection loop after altering URL
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: UncategorizedAssignee: Walden Raines <walden>
Status: CLOSED NEXTRELEASE QA Contact: Roman Plevka <rplevka>
Severity: low Docs Contact:
Priority: unspecified    
Version: NightlyCC: bbuckingham, bkearney, cwelton, ehelms, kbidarka, mmccune, rplevka, sjagtap
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5885
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 19:57:37 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 Jan Hutař 2014-06-12 14:45:23 UTC
Description of problem:
There seems to be infinite redirection loop after altering URL in Product -> Repositories (possibly elsewhere as well)


Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140611.1


How reproducible:
always


Steps to Reproduce:
1. Create product with some repositories and acccess:
   Content -> Products -> <your_product> -> Repositories
2. Change URL by just adding some random letters:
   https://<fqdn>/products/5/repositoriesXXX


Actual results:
Browser seems to be redirected again and again


Expected results:
No loop but some error page


Additional info:
In the log there seems to be infinite loop of:

==> /var/log/foreman/production.log <==
Processing by Bastion::BastionController#index as HTML
  Parameters: {"bastion_page"=>"products", "path"=>"5/repositoriesXXX"}
  Rendered home/_submenu.html.erb (4.7ms)
  Rendered home/_user_dropdown.html.erb (191.0ms)
Read fragment views/tabs_and_title_records-1 (0.3ms)
  Rendered home/_topbar.html.erb (198.6ms)
  Rendered layouts/base.html.erb (200.4ms)
  Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/engines/bastion/app/views/bastion/layouts/application.html.haml (203.0ms)
Completed 200 OK in 219ms (Views: 203.9ms | ActiveRecord: 1.8ms)

Comment 2 Walden Raines 2014-06-24 18:11:32 UTC
Connecting redmine issue http://projects.theforeman.org/issues/5885 from this bug

Comment 3 Walden Raines 2014-08-06 04:04:30 UTC
Moving bugs I'm not currently working on back to NEW.

Comment 5 Bryan Kearney 2015-12-21 17:04:45 UTC
Upstream bug component is Uncategorized

Comment 6 Walden Raines 2016-04-06 20:29:09 UTC
*** Bug 1320516 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2016-04-06 22:09:49 UTC
Upstream bug assigned to walden

Comment 8 Bryan Kearney 2016-04-06 22:09:52 UTC
Upstream bug component is Uncategorized

Comment 9 Bryan Kearney 2016-04-06 22:09:54 UTC
Upstream bug assigned to walden

Comment 10 Kedar Bidarkar 2016-05-02 14:59:36 UTC
*** Bug 1332231 has been marked as a duplicate of this bug. ***

Comment 11 Walden Raines 2016-06-24 15:47:01 UTC
Revision dee91a07
Added by Walden Raines 16 days ago

Fixes #15352: redirect to a 404 page if state does not exist.

We were infinitely redirecting on sub-states that didn't exist. This
commit redirects to a 404 page if a child state is not found.

http://projects.theforeman.org/issues/15352

Revision ba8bea1f
Added by Walden Raines 14 days ago

Merge pull request #114 from waldenraines/15352

Fixes #15352: redirect to a 404 page if state does not exist.

Comment 13 Bryan Kearney 2017-08-01 19:57:37 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.