Bug 1315459

Summary: Remove Plugin dependency on ActionDispatch::Static middleware
Product: Red Hat CloudForms Management Engine Reporter: Lindani Phiri <lphiri>
Component: Red Hat AccessAssignee: Lindani Phiri <lphiri>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: cpelland, jhardy, jprause, lphiri, nachandr, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: access:plugin
Fixed In Version: 5.6.0.0 (rubygem-redhat_access_cfme-1.0.1-1) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:40:43 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 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