Deleting a ticket that has already been deleted crashes the server.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, node.js
Research direction
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.
Written by the indexing model from the issue text.
Description
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.<anonymous> (/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)
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hacksu/kenthackenough
-
Good First Issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
hacksu/kenthackenough#56 ·
-
Good First Issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
hacksu/kenthackenough#52 ·
-
Someday
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
hacksu/kenthackenough#50 ·
-
hacksu/kenthackenough#46 · 1 comment · 1 assignee ·
-
Better errors Openenhancement Someday
Difficulty 5/5 Over a week Newbie friendliness 25/100
hacksu/kenthackenough#42 ·
All issues in hacksu/kenthackenough
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·