nus-cs2113-AY2021S2 / pe-dev-response

0 stars 0 forks source link

upon an input with space for customer name for "orders add", the order gets deleted without an explanation. #1139

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

If the user were to input a name containing a space, the order will be added (order 3 here): image.png

However, upon start up of application, it meets an error and the order is now gone:

image.png

The user guide does not state that whitespaces are not allowed in the customer names and actually implies that it is acceptable:

image.png

hence there should be an explanation given as to why it was deleted/it should not have been deleted.


[original: nus-cs2113-AY2021S2/pe-interim#1139] [original labels: severity.High type.FunctionalityBug]

ongweisheng commented 3 years ago

Team's Response

This problem occurs due to invalid parsing of the order when the save file is loaded, thus when the save file is loaded, it shows as an error in the file input causing the order to not be added back into the system upon loading. This problem can be avoided by mentioning to the user in the user guide that no spaces should be inputted in the customer's name.

Duplicate status (if any):

--