Using strict: false in plugin condition has no effect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Ihor Kalnytskyi | ||
Mitaka |
Fix Released
|
High
|
Ihor Kalnytskyi | ||
Newton |
Fix Committed
|
High
|
Ihor Kalnytskyi |
Bug Description
Detailed bug description:
I use strict: false according to plugin documentation: https:/
This code:
https:/
was valid in fuel 8.0 and some previous ISOs of 9.0. When I try activate plugin on fuel installed from recent 9.0 ISO I get error:
OpenStack Settings Configuration Error
A server error has occurred. Please contact your system administrator.
In firebug console there is an error msg:
TypeError: Value of settings:bgpvpn is undefined. Set options.strict to false to allow undefined values.
Here is a fuel snapshot: https:/
Steps to reproduce:
Install plugin with condition which check non-existed variable and have strict: false set up
Expected results:
Plugin should be activated.
Actual result:
UI return error of configuration, strict: false is not respected.
Changed in fuel: | |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
importance: | Critical → High |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Fuel Toolbox (fuel-toolbox) |
Hm.. I checked and figured out that backend responds without any errors. It seems it's a problem of frontend code. Besides, there're errors in browsers console:
parseError — bundle. js:60:20911Erro r: Parse error on line 1: settings: bgpvpn == null or s
settings:
-----------------^
Expecting 'EOF', 'EQUALS', 'NOT_EQUALS', 'RPAREN', 'AND', 'OR', 'IN', got 'MODELPATH'