Closed rimutaka closed 2 years ago
https://github.com/stackmuncher/stm_server/blob/master/stm_html_ui/src/html/dev_profile.rs does not look inside the ES response, which may or may not contain the data that was requested and sets the status to 200 OK.
If the requested login was not found it should return 404. It can be done by checking if the path to the data inside the response is present without actually unwrapping it.
https://github.com/stackmuncher/stm_server/blob/master/stm_html_ui/src/html/dev_profile.rs does not look inside the ES response, which may or may not contain the data that was requested and sets the status to 200 OK.
If the requested login was not found it should return 404. It can be done by checking if the path to the data inside the response is present without actually unwrapping it.