Hitting Enter on User management causes server crash

Open
#316 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 8 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start from the User management flow for adding a building manager and trace the Enter-key handler that triggers the AJAX request after selecting “Building Management.” Reproduce the empty-building-selection case, then verify that the request is prevented when select values are null and that a valid selection still submits without a server crash.

Written by the indexing model from the issue text.

Description

bug major needs verified

Original report by Scott Heggen (Bitbucket: sheggen, GitHub: sheggen).


When entering a new building manager, I selected "Building Management" which brought up the list of buildings. I then hit the Enter key, which tried to send data to the server.

We need to catch that Enter press, check if values are null still, and prevent the ajax call until a value exists.

Dominant language
JavaScript
Stars
0
Forks
4
Avg merge
6d 6m
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BCStudentSoftwareDevTeam/cas

All issues in BCStudentSoftwareDevTeam/cas

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.