hacksu / hacksu/kenthackenough

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

Ouverte Adaptée aux débutants
#53 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug Good First Issue help wanted
Langage dominant
JavaScript
Étoiles
6
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

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. (/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)

```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, node.js
Domaine
api, backend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
62/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.