-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Critical
-
Affects Version/s: 8.0.0beta2 (master)
-
Component/s: Frontend (F)
-
Sprint candidates
-
1
The inline validation error for required secret macros in Host Wizard is not working. It is possible to break the Host Wizard by using different scenarios, related to inline validation of the secret macro.
Steps to reproduce:
- Open Host wizard for existing host (or can create new)
- Select template with mandatory macros (including secret macro) - for example: Azure Cost Management by HTTP
- Proceed to screen with Macros
- Add one of the mandatory macros, leave the mandatory secret macro (Azure Password) empty
- Click Next
NOTE: Similar issue also can be reproduced, if there is some regex added for the secret macro in the template. If value is invalid - the console error is appearing, and any clicking buttons next / back - might cause host wizard to break.
Result:
Console error, infinite loading of the host wizard, not possible to close Host wizard.
Error:
Uncaught (in promise) NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. at <anonymous>:2203:37 at Array.forEach (<anonymous>) at #updateFieldMessages (<anonymous>:2192:12) at #updateForm (<anonymous>:1420:29) at #gotoStep (<anonymous>:494:19) at <anonymous>:354:20
Expected:
Inline validation error should appear for a secret macro. Next button should become disabled.