clone of cognigy agent fails
Closed this issue · 4 comments
(base) petrn@ip-10-10-2-121 accsec % cognigy clone
? This will delete all agent data you have stored currently locally. Do you want to proceed? Yes
Starting to clone your Agent to disk. This can take several minutes...
██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░ 35% | ETA: 3s | 35/100/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/utils/checks.js:68
return Promise.reject(new Error(task.failReason));
^
Error: The keyphrase '66' is not allowed in a csv download because it starts with a forbidden character. This is to prevent csv/Excel injection.
at exports.checkTask (/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/utils/checks.js:68:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async exports.pullLexicon (/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/lib/lexicons.js:58:5)
at async exports.cloneLexicons (/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/lib/lexicons.js:26:9)
at async Promise.all (index 2)
at async exports.clone (/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/commands/clone.js:31:13)
at async Command. (/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/program.js:37:33)
Node.js v19.5.0
--
I believe this happens because Lexicon contains "+66" country code as a value.
yes, that is right.
if you remove the "+" it should work
I'm seeing a similar issue which I think has to do with the Lexicon Synonym '02 box'. Isn't it safe to assume that in this situation, that if it's allowed within the Cognigy Agent that it should be allowed as part of a clone of that agent?
███████████████████████░░░░░░░░░░░░░░░░░ 57% | ETA: INFs | 58/100/opt/homebrew/lib/node_modules/@cognigy/cognigy-cli/build/utils/checks.js:67
return Promise.reject(new Error(task.failReason));
^
Error: The keyphrase '02 box' is not allowed in a csv download because it starts with a forbidden character. This is to prevent csv/Excel injection.
@XavierJordaMurria my lexicon contains + in the words as these are phone codes. Is it possible to allow + in lexicon words or is it explicitly prohibited?
@panovodv right now it is explicitly prohibited.
You should open a feature request, but I would suggest to use the '00' instead; +66 = 0066