Bug 657 - Program will crash if the file path contains blank space when start to login
Summary: Program will crash if the file path contains blank space when start to login
Status: RESOLVED FIXED
Alias: None
Product: CS3343 Group 26 Automated Timetable Planner
Classification: Unclassified
Component: Login (show other bugs)
Version: Beta
Hardware: PC Windows
: Normal critical
Assignee: libbyng
URL:
Depends on:
Blocks:
 
Reported: 2021-12-06 13:26 HKT by Vivian Cho
Modified: 2021-12-06 15:35 HKT (History)
0 users

See Also:


Attachments
The command list and error shown in the program (110.89 KB, image/png)
2021-12-06 13:42 HKT, libbyng
Details
Code for resolving the bug (3.57 KB, image/png)
2021-12-06 14:43 HKT, libbyng
Details

Note You need to log in before you can comment on or make changes to this 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'.