Project

General

Profile

Bug #27856

Assets initializer fails to load plugins without assets defined

Added by Shimon Shtein 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

For plugins that do not contain assets in asset pipeline (no app/assets folder exist), rake plugin:assets:precompile['my_plugin'] will create an empty manifest file.
This file will be loaded by assets initializer that is not prepared to deal with empty JSON object.

Associated revisions

Revision 0d8dd9a1 (diff)
Added by Shimon Shtein 10 months ago

Fixes #27856 - Defensive access to assets manifest

History

#1 Updated by The Foreman Bot 10 months ago

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

#2 Updated by The Foreman Bot 10 months ago

  • Fixed in Releases 1.24.0 added

#3 Updated by Shimon Shtein 10 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF