Bug 657

Summary: Program will crash if the file path contains blank space when start to login
Product: CS3343 Group 26 Automated Timetable Planner Reporter: Vivian Cho <tycho5-c>
Component: LoginAssignee: libbyng <laiyingng4-c>
Status: RESOLVED FIXED    
Severity: critical    
Priority: Normal    
Version: Beta   
Hardware: PC   
OS: Windows   
Attachments: The command list and error shown in the program
Code for resolving the bug

Description Vivian Cho 2021-12-06 13:26:24 HKT
TEST
Comment 1 libbyng 2021-12-06 13:42:00 HKT
Created attachment 106 [details]
The command list and error shown in the program
Comment 2 libbyng 2021-12-06 14:11:46 HKT
Summary:

When I was trying to log in, there is a list of errors shown.

Steps to Reproduce: 
Step 1: type login command
Step 2: press enter

Actual Results: 
The error messages are shown and thrown java.io.FileNotFoundException

Expected Results:
After typing the "login" command, the program should show the login shell and show the "Login success!" system message.
Comment 3 libbyng 2021-12-06 14:43:13 HKT
Created attachment 108 [details]
Code for resolving the bug
Comment 4 libbyng 2021-12-06 14:46:09 HKT
It seems that it is the problem of spacing that has the encoding of '%20'. The bug is solved by adding code which is the .replaceall() function. 
Please see the attached file called 'Code for resolving the bug.png'.