v4: no error is thrown when callback is set and it's a file but allowFileResources is not set to true
@jszuminski 已经在做这个了。
开始于 2024年10月28日。
评估
这个 Issue 还没有评估数据。
描述
When we set allowCodeExecution to false, we get The 'callback', 'resources' and 'customCode' options have been disabled for this server.
When we set allowCodeExecution to true, we get no error.
But when we set callback to a file, it silently ignores it. No error or warning is provided, that allowFileResources has to be enabled / set to true.
That is not ideal and makes debugging harder.
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 error no such file or directory, open 'some-invalid-path.json'
- 主要语言
- JavaScript
- 星标
- 368
- 派生
- 266
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
highcharts/node-export-server 的其他 Issue
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-server可能已有人在做 @daniatic 于 14 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
highcharts/node-export-server#686 ·
-
难度 3/5 半天 新手友好度 66/100
highcharts/node-export-server#690 ·
-
难度 3/5 1-2 天 新手友好度 35/100
highcharts/node-export-server#680 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
highcharts/node-export-server#679 ·
-
难度 3/5 1-2 天 新手友好度 45/100
highcharts/node-export-server#678 ·
查看 highcharts/node-export-server 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
subhranshudash13-dotcom/Contribo#74 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 67/100
ThatGuySam/doesitarm#1114 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
laaielichter/Reverseport#44 ·
维护者通常 1 天内回复
-
failed for an unknown reason
难度 2/5 1-3 小时 新手友好度 65/100
OpenTermsArchive/contrib-declarations#4148 ·
维护者通常 1 天内回复