Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一括登録でパワーポイントファイルをアップロードするとサーバが異常停止する #994

Closed
acutus-fujii opened this issue Aug 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@acutus-fujii
Copy link

一括登録では通常動画入り zip ファイルをアップロートするが、パワーポイントファイルをアップロードすると、下記のメッセージを表示してサーバが異常停止する。

#990 で変更したコードが、階層構造を持つ zip ファイルの解凍に対応できていないために発生する。fs.createWriteStream は、ディレクトリを含むパス名に対応しているが、パス中のディレクトリがすべて存在するときだけ正常動作し、一部でもディレクトリが存在しないときはファイルを作成しない。

WASM版 chilospeech では、パワーポイントファイルと動画入り zip ファイルが同じディレクトリにあり、また WASM版ではパワーポイントファイルをブラウザに読み込むため、ユーザが操作を誤ってサーバを停止させてしまうおそれがある。

動画入り zip ファイルは階層構造を持たないが、階層構造に対応することが望ましい。

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open '/tmp/chibichilo-import-V44YKA/_rels/.rels'
Emitted 'error' event on WriteStream instance at:
    at WriteStream.onerror (node:internal/streams/readable:785:14)
    at WriteStream.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
{
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/tmp/chibichilo-import-V44YKA/_rels/.rels'
}](url)
@acutus-fujii acutus-fujii added the bug Something isn't working label Aug 9, 2023
@acutus-fujii acutus-fujii self-assigned this Aug 9, 2023
@ties-makimura
Copy link

#1002 で完了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants