Bug #18428
closedos and resources console errors when importing json techniques
Added by Gaëtan POBLON almost 4 years ago. Updated about 1 year ago.
Description
When importing a json technique in the Technique Editor, two kind of errors may occur:
`Error: resources.filter is not a function`
`Error: technique.resources.some is not a function`
related to this GET: `https://localhost:8281/rudder/secure/api/internal/techniques/condition_errorprone/1.0/resources`
{"action":"resources","result":"error","errorDetails":"Could not get resource state of technique <- Inconsistency: No technique found when looking for technique 'condition_errorprone' resources"}
`Error: st[i].OS_class is undefined` occurs when "class_prefix": "(debian|ubuntu)" with no preceeding "any."
Updated by Gaëtan POBLON almost 4 years ago
Messing with the class_prefix breaks the technique editor (can't reset, can't choose another technique, or update it then save a well-formatted version)
Here are the errors:
Error: technique.resources.some is not a function $scope.isUnchanged@https://localhost:8281/rudder/techeditor/js/ncf.js:1080:54 fn@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js line 233 > Function:4:330 $digest@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js:143:43 $apply@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js:146:113 $scope.onImportFileChange/reader.onloadend@https://localhost:8281/rudder/techeditor/js/ncf.js:798:14 EventHandlerNonNull*$scope.onImportFileChange@https://localhost:8281/rudder/techeditor/js/ncf.js:796:3 onchange@https://localhost:8281/rudder/secure/configurationManager/techniqueEditor:1:31 angular.js:13920:17
Error: resources.filter is not a function $scope.getResourcesByState@https://localhost:8281/rudder/techeditor/js/ncf.js:1731:53 fn0@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js line 233 > Function:4:860 l/<@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js:127:88 $digest@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js:143:43 $apply@https://localhost:8281/rudder/cache-6.2.0~alpha1-SNAPSHOT/javascript/angular/angular.min.js:146:113 $scope.onImportFileChange/reader.onloadend@https://localhost:8281/rudder/techeditor/js/ncf.js:798:14 EventHandlerNonNull*$scope.onImportFileChange@https://localhost:8281/rudder/techeditor/js/ncf.js:796:3 onchange@https://localhost:8281/rudder/secure/configurationManager/techniqueEditor:1:31
Error: st[i].OS_class is undefined
$scope.checkDiff@https://localhost:8281/rudder/techeditor/js/ncf.js:1654:20
$scope.isUnchanged@https://localhost:8281/rudder/techeditor/js/ncf.js:1084:21
...
Updated by Elaad FURREEDAN almost 4 years ago
- Status changed from New to In progress
- Assignee changed from Vincent MEMBRÉ to Elaad FURREEDAN
Updated by Elaad FURREEDAN almost 4 years ago
- Status changed from In progress to New
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.2.0~beta1 to 6.2.0~rc1
Updated by Elaad FURREEDAN almost 4 years ago
- Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
Updated by François ARMAND almost 4 years ago
- Assignee changed from Vincent MEMBRÉ to Elaad FURREEDAN
Updated by Elaad FURREEDAN almost 4 years ago
Work in progess here: https://github.com/ElaadF/rudder/commit/a9bfd05efdb286988be832a2f2aa96b4bebe4bc0
Updated by Elaad FURREEDAN over 3 years ago
Work in progess here: https://github.com/ElaadF/rudder/commit/5afed53c7c884aa325bf23e26f49f1c5f7b3f5bc
Updated by Elaad FURREEDAN over 3 years ago
- Copied to Bug #18660: OS class undefined when importing technique added
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.0~rc1 to 6.2.0
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.0 to 6.2.1
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.1 to 6.2.2
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.2 to 6.2.3
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.3 to 6.2.4
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.4 to 6.2.5
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.5 to 6.2.6
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.6 to 6.2.7
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.7 to 6.2.8
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.2.8 to 6.2.9
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.2.9 to 6.2.10
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 6.2.10 to 6.2.11
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 6.2.11 to 6.2.12
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.12 to 6.2.13
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.13 to 6.2.14
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 6.2.14 to 6.2.15
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 6.2.15 to 6.2.16
Updated by Alexis Mousset about 2 years ago
- Target version changed from 6.2.16 to 6.2.17
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 6.2.17 to 997
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 997 to 6.2.18
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 6.2.18 to 6.2.19
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 6.2.19 to 6.2.20
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 6.2.20 to old 6.2 issues to relocate