Project

General

Profile

Actions

Bug #9106

closed

If properties.d doesn't exists, cf-promises fails with an "error 'cf_null'"

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

We added a feature that allows to load all json in cf-enfine agent sys sub directory "properties.d".

If that directory doesn't exists, cf-promise fails with the message:

   error: readjson: data error parsing JSON file 'cf_null': No data

The culprit seems to be inputs.new/common/1.0/properties.cf:

"properties_files" slist => findfiles("${sys.workdir}/inputs/properties.d/*.json");

We need to just assume there is not properties to load if that directory is missing.


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #9087: Error on promises generation when there are no properties filesRejectedActions
Actions #1

Updated by François ARMAND over 7 years ago

Actually, it needs both the directory AND at least a json file in it to not display errors.

Actions #2

Updated by Nicolas CHARLES over 7 years ago

  • Related to Bug #9087: Error on promises generation when there are no properties files added
Actions #3

Updated by François ARMAND over 7 years ago

  • Related to deleted (Bug #9087: Error on promises generation when there are no properties files)
Actions #4

Updated by François ARMAND over 7 years ago

  • Is duplicate of Bug #9087: Error on promises generation when there are no properties files added
Actions #5

Updated by François ARMAND over 7 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF