You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
highcharts-export-server --allowCodeExecution true --logToFile false --infile "....in.js" --outfile "...out.jpg" --type "jpg" --globalOptions "....globalOptions.js" --callback "some-invalid-path.js" --allowFileResources true --width 600 throws error no such file or directory, open 'some-invalid-path.json'
The text was updated successfully, but these errors were encountered:
DanielRuf
changed the title
v4: no error is thrown when callback is set and a file but allowFileResources is not set to true
v4: no error is thrown when callback is set and it's a file but allowFileResources is not set to true
Aug 28, 2024
When we set
allowCodeExecution
tofalse
, we getThe 'callback', 'resources' and 'customCode' options have been disabled for this server.
When we set
allowCodeExecution
totrue
, we get no error.But when we set
callback
to a file, it silently ignores it. No error or warning is provided, thatallowFileResources
has to be enabled / set totrue
.That is not ideal and makes debugging harder.
node-export-server/lib/chart.js
Line 416 in e740944
To reproduce:
highcharts-export-server --allowCodeExecution true --logToFile false --infile "....in.js" --outfile "...out.jpg" --type "jpg" --globalOptions "....globalOptions.json" --callback "some-invalid-path.js" --width 600
throws no error.highcharts-export-server --allowCodeExecution true --logToFile false --infile "....in.js" --outfile "...out.jpg" --type "jpg" --globalOptions "....globalOptions.js" --callback "some-invalid-path.js" --allowFileResources true --width 600
throws errorno such file or directory, open 'some-invalid-path.json'
The text was updated successfully, but these errors were encountered: