Actions
Bug #12660
closedUser story #7616: Overriden directives are not listed in reports information
JS error on node compliance details for rule with overiden directives
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
70
Name check:
Fix check:
Regression:
Description
The JS error is:
rudder-datatable.js:1586 Uncaught TypeError: Cannot read property 'val' of undefined at compliancePercentValue (rudder-datatable.js:1586) at getProgressBars (rudder-datatable.js:1601) at buildComplianceBar (rudder-datatable.js:1469) at r.fn.init.fnCreatedCell (rudder-datatable.js:764) at Ha (datatables.min.js:37) at N (datatables.min.js:28) at HTMLTableElement.<anonymous> (datatables.min.js:104) at Function.each (jquery-3.1.0.min.js:2) at r.fn.init.each (jquery-3.1.0.min.js:2) at r.fn.init.m [as dataTable] (datatables.min.js:94) compliancePercentValue @ rudder-datatable.js:1586 getProgressBars @ rudder-datatable.js:1601 buildComplianceBar @ rudder-datatable.js:1469 fnCreatedCell @ rudder-datatable.js:764 Ha @ datatables.min.js:37 N @ datatables.min.js:28 (anonymous) @ datatables.min.js:104 each @ jquery-3.1.0.min.js:2 each @ jquery-3.1.0.min.js:2 m @ datatables.min.js:94 h.fn.DataTable @ datatables.min.js:178 createTable @ rudder-datatable.js:1747 (anonymous) @ rudder-datatable.js:794 (anonymous) @ rudder-datatable.js:1703 dispatch @ jquery-3.1.0.min.js:3 q.handle @ jquery-3.1.0.min.js:3 rudder-datatable.js:1586 Uncaught TypeError: Cannot read property 'val' of undefined at compliancePercentValue (rudder-datatable.js:1586) at getProgressBars (rudder-datatable.js:1601) at buildComplianceBar (rudder-datatable.js:1469) at r.fn.init.fnCreatedCell (rudder-datatable.js:764) at Ha (datatables.min.js:37) at N (datatables.min.js:28) at HTMLTableElement.<anonymous> (datatables.min.js:104) at Function.each (jquery-3.1.0.min.js:2) at r.fn.init.each (jquery-3.1.0.min.js:2) at r.fn.init.m [as dataTable] (datatables.min.js:94) compliancePercentValue @ rudder-datatable.js:1586 getProgressBars @ rudder-datatable.js:1601 buildComplianceBar @ rudder-datatable.js:1469 fnCreatedCell @ rudder-datatable.js:764 Ha @ datatables.min.js:37 N @ datatables.min.js:28 (anonymous) @ datatables.min.js:104 each @ jquery-3.1.0.min.js:2 each @ jquery-3.1.0.min.js:2 m @ datatables.min.js:94 h.fn.DataTable @ datatables.min.js:178 createTable @ rudder-datatable.js:1747 (anonymous) @ rudder-datatable.js:794 (anonymous) @ rudder-datatable.js:1703 dispatch @ jquery-3.1.0.min.js:3 q.handle @ jquery-3.1.0.min.js:3
Updated by François ARMAND over 6 years ago
- Status changed from New to In progress
Updated by François ARMAND over 6 years ago
This does not happen when the node is in "No recent reports" state.
Updated by François ARMAND over 6 years ago
OK, finally successfully reproduced it on my dev box. It needs some valid compliance for the rule with overriden directive to happen.
Updated by François ARMAND over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1937
Updated by François ARMAND over 6 years ago
So, the problem is rudder-datatable.js, where we do a loop on many more elements than an array has. I propose a solution, but it doesn't correct the faulty , it just makes stop the looping when there is no more cells in the array.
Updated by Rudder Quality Assistant over 6 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by François ARMAND over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|eb4b19869e275d747511bbc62dba429e935e734f.
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.12
Updated by Benoît PECCATTE over 6 years ago
- Status changed from Pending release to Released
Actions