PROBLEM
While creating a question, the "Marks" field currently
allows very large values (e.g., 100000).
This is not practical for assessments and may lead to
incorrect scoring or reporting issues.
The marks value should be restricted to a reasonable limit.
STEPS TO REPRODUCE
- Login as Admin
Open the application: http://test.tadreeblms.com/
Login using admin credentials:
Username: [[email protected]]
Password: 123456
- Navigate to:
Courses Management → Questions
- Click "Create Question"
- Enter a very large number in the "Marks" field
(e.g., 100000)
- Save the question
ACTUAL RESULT
The system accepts marks with unlimited digits.
EXPECTED RESULT
Marks should be limited to a maximum of 3 digits.
Allowed range example:
1 – 999
Any value greater than 999 should trigger validation error.
Example error message:
"Marks cannot exceed 999."
VALIDATION RULES REQUIRED
Marks field:
✔ Numeric only
✔ Minimum value: 1
✔ Maximum value: 999
Example validation:
marks => required|numeric|min:1|max:999
AREAS TO CHECK
Frontend:
Question creation form
Backend:
QuestionController
StoreQuestionRequest
Database:
questions.marks column
IMPACT
- Prevents unrealistic scoring
- Keeps assessments standardized
- Avoids reporting anomalies
ACCEPTANCE CRITERIA
✔ Marks cannot exceed 3 digits
✔ Validation error shown for values > 999
✔ Backend validation enforced
✔ UI input restriction implemented
SCREENSHOT
END
PROBLEM
While creating a question, the "Marks" field currently
allows very large values (e.g., 100000).
This is not practical for assessments and may lead to
incorrect scoring or reporting issues.
The marks value should be restricted to a reasonable limit.
STEPS TO REPRODUCE
Open the application: http://test.tadreeblms.com/
Login using admin credentials:
Username: [[email protected]]
Password: 123456
Courses Management → Questions
(e.g., 100000)
ACTUAL RESULT
The system accepts marks with unlimited digits.
EXPECTED RESULT
Marks should be limited to a maximum of 3 digits.
Allowed range example:
1 – 999
Any value greater than 999 should trigger validation error.
Example error message:
"Marks cannot exceed 999."
VALIDATION RULES REQUIRED
Marks field:
✔ Numeric only
✔ Minimum value: 1
✔ Maximum value: 999
Example validation:
marks => required|numeric|min:1|max:999
AREAS TO CHECK
Frontend:
Question creation form
Backend:
QuestionController
StoreQuestionRequest
Database:
questions.marks column
IMPACT
ACCEPTANCE CRITERIA
✔ Marks cannot exceed 3 digits
✔ Validation error shown for values > 999
✔ Backend validation enforced
✔ UI input restriction implemented
SCREENSHOT
END