| Summary: | [PredictSys] java.lang.ArrayIndexOutOfBoundsException thrown when doing New Prediction with invalid parameters | ||
|---|---|---|---|
| Product: | MovieXXX | Reporter: | tomfong521 |
| Component: | MovieAnalysisEngine | Assignee: | clwong274-c |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | High | ||
| Version: | 2.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Deadline: | 2018-11-24 | ||
|
Description
tomfong521
2018-11-30 00:53:17 HKT
Root cause - Checking for validation of input is missing in PredictSys::doNewPrediction() How to fix - Added PredictSys::checkParameter() to check validation of parameter, prompt to ask user entering parameter again if invalid Expected behavior - If invalid parameter is input, accurate error message indicating instruction to input correct parameter should be shown - After error message, prompt to ask user entering parameters again Potential affected areas - PredictSys Affected versions - >=v3 Test cases 1. Enter "1" to select "Office Box Prediction" in [System Home] 2. Enter "1" to select "Start New Prediction" in [Office Box Prediction] 3. Enter invalid keyword (e.g. "tomJai") to process recommendation Test result - At testing step(3), error message "Please input the exact number of data as specified!" is shown - After error message, enter message is prompted to ask user entering parameters again |