Bug 1019896

Summary: Org Switcher does not work on nutupane pages
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Walden Raines <walden>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: cwelton, jmontleo
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-24 17:08:11 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 Mike McCune 2013-10-16 15:10:11 UTC
1) Org Switcher raises error and doesn't function

* Login
* Click Org Switcher
* Note lack of list and stacktrace:

[ERROR 2013-10-16 10:45:23 app 0050a01f69a0ee6ac203cb7b670b5550 #2128] Rendering 500:Missing partial /layouts/allowed_orgs with {:locale=&gt;[:en], :formats=&gt;[&quot;version=2&quot;, :json], :handlers=&gt;[:erb, :builder, :haml, :rabl]}. Searched in:
 |   * &quot;/usr/share/katello/app/views&quot;
 |   * &quot;/usr/share/katello/engines/fort/app/views&quot;
 |   * &quot;/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.0.23/app/views&quot;
 |   * &quot;/usr/share/katello/engines/bastion/app/views&quot;
 |   * &quot;/opt/rh/ruby193/root/usr/share/gems/gems/ui_alchemy-rails-1.0.12/app/views&quot;


https://gist.github.com/mccun934/6999833

2) Products page doesn't render repos that exist in the database

* Go to Products page and create a Product + Repo
* Leave the page and come back
* Note that page is empty

Comment 2 Walden Raines 2013-10-16 15:32:04 UTC
(In reply to Mike McCune from comment #0)
> 1) Org Switcher raises error and doesn't function
> 
> * Login
> * Click Org Switcher
> * Note lack of list and stacktrace:
> 
> [ERROR 2013-10-16 10:45:23 app 0050a01f69a0ee6ac203cb7b670b5550 #2128]
> Rendering 500:Missing partial /layouts/allowed_orgs with {:locale=&gt;[:en],
> :formats=&gt;[&quot;version=2&quot;, :json], :handlers=&gt;[:erb, :builder,
> :haml, :rabl]}. Searched in:
>  |   * &quot;/usr/share/katello/app/views&quot;
>  |   * &quot;/usr/share/katello/engines/fort/app/views&quot;
>  |   *
> &quot;/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.0.23/app/
> views&quot;
>  |   * &quot;/usr/share/katello/engines/bastion/app/views&quot;
>  |   *
> &quot;/opt/rh/ruby193/root/usr/share/gems/gems/ui_alchemy-rails-1.0.12/app/
> views&quot;

Steps to Reproduce:
 1. In FF go to a nutupane page
 2. Open the org switcher
 3. Notice 500

Comment 3 Walden Raines 2013-10-16 15:50:44 UTC
(In reply to Mike McCune from comment #0)
> 2) Products page doesn't render repos that exist in the database
> 
> * Go to Products page and create a Product + Repo
> * Leave the page and come back
> * Note that page is empty

Splitting this out into it's own bug:  https://bugzilla.redhat.com/show_bug.cgi?id=1019920

Comment 4 Walden Raines 2013-10-16 15:59:41 UTC
PR:  https://github.com/Katello/katello/pull/3193

Comment 5 Walden Raines 2013-10-16 18:30:57 UTC
commit 3c5e6e8da32fcfcf88f49a665b059b56f80569b9
Merge: 0176a83 1bdae5d
Author: Walden Raines <walden>
Date:   Wed Oct 16 11:29:15 2013 -0700

    Merge pull request #3193 from waldenraines/bug-1019896
    
    Bug #1019896 - explicitly setting accept headers for FF.

commit 1bdae5d1f16c6b314ee5ad0d67992234a0c891a0
Author: Walden Raines <walden>
Date:   Wed Oct 16 13:09:46 2013 -0400

    Bug #1019896 - explicitly setting accept headers for FF.
    
    FF was replacing headers instead of appending them so this commit
    explicitly includes 'text/plain' and '*/*' in order to fix the
    org switcher.  Also includes a padding fix for the org switcher
    in FF.

Comment 8 Corey Welton 2013-10-18 17:28:42 UTC
This appears to be fixed.

QA Verified in Satellite-6.0.2-RHEL-6-20131016.0

Comment 9 Bryan Kearney 2014-04-24 17:08:11 UTC
This was verified and delivered with MDP2. Closing it out.