Closed Bug 1530609 Opened 6 years ago Closed 6 years ago

Failure to create custom action

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1530602

People

(Reporter: igoldan, Unassigned)

Details

Clicking on the Custom Action... item from the ... menu from bottom of page breaks the entire page with CSP errors.

Error compiling schema, function code: var refVal1 = refVal[1]; var validate = function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict';  var vErrors = null;  var errors = 0;            var errs_1 = errors;    var errs_2 = errors; if ((typeof data !== "number" || (data % 1) || data !== data)) {  var err =  { keyword: 'type' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/type' , params: { type: 'integer' }  , message: 'should be integer'  , schema: refVal[1].type , parentSchema: refVal[1] , data: data  } ;  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++;  }  if (typeof data === "number") {    if (  data < 0 || data !== data) {  var err =  { keyword: 'minimum' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/minimum' , params: { comparison: '>=', limit: 0, exclusive: false }  , message: 'should be >= 0' , schema:  0         , parentSchema: refVal[1] , data: data  } ;  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++;  }   }  var valid2 = errors === errs_2;   var valid1 = errors === errs_1;   validate.errors = vErrors;  return errors === 0;        }; return validate; index.js:149

    N index.js:149 l resolve.js:54 D index.js:189 exports ref.js:21 exports validate.js:272 exports properties.js:195 exports validate.js:353 N index.js:88 e index.js:55 _compile ajv.js:347 getSchema ajv.js:203 validateSchema ajv.js:187 _addSchema ajv.js:306 compile ajv.js:112 updateSelectedAction CustomJobActions.jsx:88 componentDidMount CustomJobActions.jsx:63 ra5React

unstable_runWithPriority scheduler.production.min.js:18 zo7React
componentDidMount CustomJobActions.jsx:54

EvalError: "call to Function() blocked by CSP"

    N index.js:120 l resolve.js:54 D index.js:189 exports ref.js:21 exports validate.js:272 exports properties.js:195 exports validate.js:353 N index.js:88 e index.js:55 _compile ajv.js:347 getSchema ajv.js:203 validateSchema ajv.js:187 _addSchema ajv.js:306 compile ajv.js:112 updateSelectedAction CustomJobActions.jsx:88 componentDidMount CustomJobActions.jsx:63 ra5React

unstable_runWithPriority scheduler.production.min.js:18 zo7React

    componentDidMount CustomJobActions.jsx:54 

react-dom.production.min.js:198:186

    fa7React

unstable_runWithPriority scheduler.production.min.js:18 zo7React
componentDidMount CustomJobActions.jsx:54

Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). Source: function anonymous(self,RULES,formats,root,refVal,defaults,customRules,equal,ucs2length,ValidationError ) { var refVal1 = refVal[1]; var validate = function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; var vErrors = null; var errors = 0; var errs_1 = errors; var errs_2 = errors; if ((typeof data !== "number" || (data % 1) || data !== data)) { var err = { keyword: 'type' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/type' , params: { type: 'integer' } , message: 'should be integer' , schema: refVal[1].type , parentSchema: refVal[1] , data: data } ; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } if (typeof data === "number") { if ( data < 0 || data !== data) { var err = { keyword: 'minimum' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/minimum' , params: { comparison: '>=', limit: 0, exclusive: false } , message: 'should be >= 0' , schema: 0 , parentSchema: refVal[1] , data: data } ; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } var valid2 = errors === errs_2; var valid1 = errors === errs_1; validate.errors = vErrors; return errors === 0; }; return validate; }.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.