Describe the bug
Using the photo command to add a photo to a Person throws a prompt result "The path of the photo is invalid. ". Upon further checking, the path is valid .However, as the pathname contains spaces " ", either in the filename or the folder names along the path, the photo command does not parse fully the entire path.
To Reproduce
Steps to reproduce the behavior:
Copy a photo to a filepath containing spaces " " in the folder names or image name
Use the photo command to add the photo to a Person
See error
Expected behavior
The specified photo is added to the Person, and displays in the Person card.
Screenshots
Additional context
While photos may be renamed, it may be useful to specify in the user guide the restriction on folder names and filenames, as well as specify it in the CommandResult. Otherwise, a workaround is needed.
Describe the bug Using the photo command to add a photo to a Person throws a prompt result "The path of the photo is invalid. ". Upon further checking, the path is valid .However, as the pathname contains spaces " ", either in the filename or the folder names along the path, the photo command does not parse fully the entire path.
To Reproduce Steps to reproduce the behavior:
photo
command to add the photo to a PersonExpected behavior The specified photo is added to the Person, and displays in the Person card.
Screenshots
Additional context While photos may be renamed, it may be useful to specify in the user guide the restriction on folder names and filenames, as well as specify it in the CommandResult. Otherwise, a workaround is needed.
Reported by: @shaungohsc Severity: Medium
[original: nus-cs2103-AY1819S2/pe-dry-run#671]