Project

General

Profile

Bug #14645

Images for plugins in production mode result in 404s

Added by Walden Raines over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Images are going through the legacy asset helpers in sprockets-rails, we need to fix that.

For plugins we need to ensure that the digest is looking up digested assets in production and ensure that the prefix is set in order to generate the proper path for the assets.

This will allow the use of image-url in sass for the correct retrieval of digested images.

Associated revisions

Revision db851032 (diff)
Added by Walden Raines over 4 years ago

Fixes #14645: fix production images for plugins.

Images were going through the legacy asset helpers in
sprockets-rails, this commit sets some options on the context
class to ensure we are looking up digested images in the correct
path.

http://projects.theforeman.org/issues/14645

Revision 84146650 (diff)
Added by Walden Raines over 4 years ago

Fixes #14645: fix production images for plugins.

Images were going through the legacy asset helpers in
sprockets-rails, this commit sets some options on the context
class to ensure we are looking up digested images in the correct
path.

http://projects.theforeman.org/issues/14645
(cherry picked from commit db8510329fc284bd17cea01df09ea0a5f4f5364b)

History

#1 Updated by Walden Raines over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3423 added

#2 Updated by Walden Raines over 4 years ago

  • Bugzilla link set to 1327233

#3 Updated by Walden Raines over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 141

Also available in: Atom PDF