Project

General

Profile

Actions

Bug #18428

closed

os and resources console errors when importing json techniques

Added by Gaëtan POBLON about 4 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
5 (lowest)
Category:
Web - Technique editor
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

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."


Related issues 1 (0 open1 closed)

Copied to Rudder - Bug #18660: OS class undefined when importing techniqueRejectedElaad FURREEDANActions
Actions #1

Updated by Gaëtan POBLON about 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
...

Actions #2

Updated by Elaad FURREEDAN about 4 years ago

  • Target version set to 6.2.0~beta1
Actions #3

Updated by Elaad FURREEDAN about 4 years ago

  • Status changed from New to In progress
  • Assignee changed from Vincent MEMBRÉ to Elaad FURREEDAN
Actions #4

Updated by Elaad FURREEDAN about 4 years ago

  • Status changed from In progress to New
Actions #5

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.2.0~beta1 to 6.2.0~rc1
Actions #6

Updated by Elaad FURREEDAN about 4 years ago

  • Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
Actions #7

Updated by François ARMAND about 4 years ago

  • Assignee changed from Vincent MEMBRÉ to Elaad FURREEDAN
Actions #10

Updated by François ARMAND about 4 years ago

  • Priority changed from N/A to 5 (lowest)
Actions #11

Updated by Elaad FURREEDAN about 4 years ago

  • Copied to Bug #18660: OS class undefined when importing technique added
Actions #12

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.2.0~rc1 to 6.2.0
Actions #13

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.2.0 to 6.2.1
Actions #14

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.2.1 to 6.2.2
Actions #15

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.2.2 to 6.2.3
Actions #16

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.2.3 to 6.2.4
Actions #17

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.2.4 to 6.2.5
Actions #18

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.5 to 6.2.6
Actions #19

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.6 to 6.2.7
Actions #20

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.7 to 6.2.8
Actions #21

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.8 to 6.2.9
Actions #22

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.9 to 6.2.10
Actions #23

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.2.10 to 6.2.11
Actions #24

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 6.2.11 to 6.2.12
Actions #25

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 6.2.12 to 6.2.13
Actions #26

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.13 to 6.2.14
Actions #27

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.14 to 6.2.15
Actions #28

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.15 to 6.2.16
Actions #29

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 6.2.16 to 6.2.17
Actions #30

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.17 to 997
Actions #31

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 997 to 6.2.18
Actions #32

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.18 to 6.2.19
Actions #33

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.2.19 to 6.2.20
Actions #34

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 6.2.20 to old 6.2 issues to relocate
Actions #35

Updated by Alexis Mousset over 1 year ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF