hacksu / hacksu/kenthackenough

Deleting a ticket that has already been deleted crashes the server.

オープン 初心者向け
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug Good First Issue help wanted
主要言語
JavaScript
スター
6
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

calling DELETE /tickets/ID after the ticket has been removed crashes the server with the exception

```
TypeError: Cannot read property '_id' of null
at /var/www/kenthackenough/app/tickets/controller.js:78:22
at Query. (/var/www/kenthackenough/node_modules/mongoose/lib/query.js:2120:28)
at /var/www/kenthackenough/node_modules/mongoose/node_modules/kareem/index.js:177:19
at /var/www/kenthackenough/node_modules/mongoose/node_modules/kareem/index.js:109:16
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)

```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start in app/tickets/controller.js at line 78 and reproduce DELETE /tickets/ID after the ticket has already been removed. Trace the null result from the ticket lookup and verify that deleting a missing ticket no longer crashes the server. No test file is mentioned in the issue.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
api, backend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
62/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。