Bug 1428580 - UI blows up while downloading Switch Summary as PDF
Summary: UI blows up while downloading Switch Summary as PDF
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.0
Assignee: Dan Clarizio
QA Contact: Nandini Chandra
URL:
Whiteboard: ui:error:sdn
Depends On:
Blocks: 1458926
TreeView+ depends on / blocked
 
Reported: 2017-03-02 21:30 UTC by Nandini Chandra
Modified: 2018-03-06 14:36 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1458926 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:36:22 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen shot of switch summary page (38.08 KB, image/png)
2017-03-02 21:32 UTC, Nandini Chandra
no flags Details

Description Nandini Chandra 2017-03-02 21:30:20 UTC
Description of problem:
-----------------------
The UI blows up with this error while downloading Switch Summary as PDF.

Error text:

No route matches {:action=>"show", :controller=>"switch", :id=>"13"} [infra_networking/download_summary_pdf] 

Snippet from production.log:

----] I, [2017-03-02T16:28:45.847549 #779:be431c]  INFO -- : Started GET "/infra_networking/download_summary_pdf/13" for 127.0.0.1 at 2017-03-02 16:28:45 -0500
[----] I, [2017-03-02T16:28:45.849965 #779:be431c]  INFO -- : Processing by InfraNetworkingController#download_summary_pdf as HTML
[----] I, [2017-03-02T16:28:45.850066 #779:be431c]  INFO -- :   Parameters: {"id"=>"13"}
[----] I, [2017-03-02T16:28:45.890495 #779:be431c]  INFO -- :   Rendering /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/views/layouts/show_pdf.html.haml
[----] I, [2017-03-02T16:28:45.891033 #779:be431c]  INFO -- :   Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/views/layouts/_pdf_styles.html.haml (0.1ms)
[----] I, [2017-03-02T16:28:45.910630 #779:be431c]  INFO -- :   Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/views/layouts/show_pdf.html.haml (19.9ms)
[----] F, [2017-03-02T16:28:45.910950 #779:be431c] FATAL -- : Error caught: [ActionView::Template::Error] No route matches {:action=>"show", :controller=>"switch", :id=>"13"}
/opt/rh/cfme-gemset/gems/actionpack-5.0.1/lib/action_dispatch/journey/formatter.rb:51:in `generate'
/opt/rh/cfme-gemset/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:629:in `generate'
/opt/rh/cfme-gemset/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:660:in `generate'
/opt/rh/cfme-gemset/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:707:in `url_for'
/opt/rh/cfme-gemset/gems/actionpack-5.0.1/lib/action_dispatch/routing/url_for.rb:172:in `url_for'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/routing_url_for.rb:90:in `url_for'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/application_helper.rb:209:in `url_for_db'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/application_helper.rb:189:in `url_for_record'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:580:in `render_non_listicon_single_quadicon'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:630:in `render_single_quad_quadicon'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:163:in `quadicon_builder_factory'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:150:in `block in render_quadicon'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/helpers/capture_helper.rb:39:in `block in capture'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/helpers/capture_helper.rb:39:in `capture'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/helpers/tag_helper.rb:107:in `content_tag'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:173:in `quadicon_tag'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/helpers/quadicon_helper.rb:149:in `render_quadicon'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-7e402532b743/app/views/layouts/show_pdf.html.haml:4:in `__opt_rh_cfme_gemset_bundler_gems_manageiq_ui_classic__e______b____app_views_layouts_show_pdf_html_haml___4089940840318281024_157226980'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/template.rb:159:in `block in render'
/opt/rh/cfme-gemset/gems/activesupport-5.0.1/lib/active_support/notifications.rb:166:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/template.rb:354:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/template.rb:157:in `render'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/template_renderer.rb:14:in `render'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/renderer.rb:42:in `render_template'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/renderer/renderer.rb:23:in `render'
/opt/rh/cfme-gemset/gems/actionview-5.0.1/lib/action_view/rendering.rb:103:in `_render_template'


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


How reproducible:
----------------
Always


Steps to Reproduce:
------------------
1.Navigate to Compute -> Infrastructure -> networking page
2.From the switches accordion , click an infra provider.
3.Click a switch to get to its summary page; Click 'Download summary in PDF format' button.


Actual results:
---------------
UI error


Expected results:
-----------------
No UI error


Additional info:
---------------

Comment 2 Nandini Chandra 2017-03-02 21:32:51 UTC
Created attachment 1259343 [details]
screen shot of switch summary page

Comment 5 CFME Bot 2017-05-02 13:08:15 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/091e639fd042bf06983d496ece08ebb5a441f4b4

commit 091e639fd042bf06983d496ece08ebb5a441f4b4
Author:     Eric Hayes <eric>
AuthorDate: Tue Apr 18 12:30:04 2017 -0700
Commit:     Eric Hayes <eric>
CommitDate: Tue Apr 18 12:30:04 2017 -0700

    Skip links for quadicons in PDF download
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428580

 app/controllers/application_controller.rb | 4 ++++
 1 file changed, 4 insertions(+)

Comment 7 Nandini Chandra 2017-11-08 22:05:56 UTC
Verified in 5.9.0.7


Note You need to log in before you can comment on or make changes to this bug.