Bug 1483241

Summary: Navigating first to products page and then setting the org context throws 500 ISE
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, mhulan, nkathole
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-18 12:57:45 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:
Attachments:
Description Flags
the error when first navigating first to products page
none
log in production.log file none

Description Kedar Bidarkar 2017-08-19 14:45:17 UTC
Description of problem:

Navigating first to products page and then setting the org context throws 500 ISE

2017-08-19 10:38:38 f76308e1 [app] [I] Current user: admin (administrator)
2017-08-19 10:38:38 f76308e1 [app] [W] Action failed
 | ActionView::MissingTemplate: Missing template bastion/layouts/application with {:locale=>[:en], :formats=>[:json, :text, "version=2; */*"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rabl]}. Searched in:
 |   * "/usr/share/foreman/app/views"

----

| /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2017-08-19 10:38:38 f76308e1 [app] [I] Completed 500 Internal Server Error in 36ms (ActiveRecord: 3.3ms)
2017-08-19 10:38:38 f76308e1 [app] [F] 
 | ActionView::MissingTemplate (Missing template common/500 with {:locale=>[:en], :formats=>[:json, :text, "version=2; */*"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rabl]}. Searched in:
 |   * "/usr/share/foreman/app/views"
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_virt_who_configure-0.1.4/app/views"



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

Satellite 6.3.0-snap11.0


How reproducible:


Steps to Reproduce:
1. With no "org context" set
2. Navigate to products page
3. and now select the org from the dropdown box "Please select one from the list below and you will be redirected."

Actual results:
Navigating first to products page and then setting the org context throws 500 ISE

The products page load fine , but with ISE seen from /v/l/foreman/production.log


Expected results:

Navigating first to products page and then setting the org context should not throw 500 ISE




Additional info:

Comment 2 Kedar Bidarkar 2017-08-19 15:27:06 UTC
Created attachment 1315771 [details]
the error when first navigating first to products page

Comment 4 Nikhil Kathole 2017-09-17 09:21:16 UTC
FailedQA

Version Tested:
Satellite-6.3 Snap 16

steps:
1. Change to 'Any organization"
2. Navigate to product page
3. Asked for org select > selected org
4. tail -f /var/log/foreman/production.log

500 Internal server error as
'Action failed
 | ActionView::MissingTemplate: Missing template bastion/layouts/application'

Comment 5 Nikhil Kathole 2017-09-17 09:21:41 UTC
Created attachment 1326920 [details]
log in production.log file