Bug 1315459 - Remove Plugin dependency on ActionDispatch::Static middleware
Summary: Remove Plugin dependency on ActionDispatch::Static middleware
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Red Hat Access
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: GA
: 5.6.0
Assignee: Lindani Phiri
QA Contact: Satyajit Bulage
URL:
Whiteboard: access:plugin
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-07 19:36 UTC by Lindani Phiri
Modified: 2016-07-27 06:29 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.0 (rubygem-redhat_access_cfme-1.0.1-1)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:40:43 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Lindani Phiri 2016-03-07 19:36:23 UTC
Modify plugin so that it does not depend on ActionDipatch:Static middleware.
Due to configuration changes in Core, this will no longer work as per email below:


Hi Lindani,

Satoe is in the process of building nightly builds for downstream in preparation for the upcoming CloudForms 4.1 release.  During her investigations, she found that the redhat_access_cfme gem is blowing up during application initialization with

    No such middleware to insert before: ActionDispatch::Static

Note that we have changed the configuration to no longer server static assets from Rails (i.e. config.server_static_assets = false), so the check that the gem is doing to find the ActionDispatch::Static middleware may no longer be valid.  I'm not sure if you were piggybacking that middleware because it was in a convenient spot in the Rack stack, or if you actually needed to come before that specific one because you were relying on assets being served statically.

For now, Satoe has commented out installing the rpm in order to get a build working, and we now have one that you could use for debugging the problem.

Thanks,
Jason

Comment 3 Satyajit Bulage 2016-04-21 10:48:43 UTC
Please add verification steps

Comment 4 Lindani Phiri 2016-04-21 13:35:43 UTC
Verify that the CFME appliance starts correctly and that the "Red Hat Insights" UI screens render correctly without any HTTP 404 errors when fetching any required images/fonts files from the server.

Comment 5 Satyajit Bulage 2016-04-25 06:54:23 UTC
Verified the CFME appliance starts correctly and that the "Red Hat Insights" UI screens render correctly without any HTTP 404 errors when fetching any required images/fonts files from the server.

Verified Version :- 5.6.0.4-beta2.3.20160421172650_719e256

Comment 8 errata-xmlrpc 2016-06-29 15:40:43 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:1348


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