Handle exceptions when sending error message in servlet

According to Sonarqube, even though the signatures for methods in a
servlet include throws IOException, ServletException, it's a bad idea to
let such exceptions be thrown. Failure to catch exceptions in a servlet
could leave a system in a vulnerable state, possibly resulting in
denial-of-service attacks, or the exposure of sensitive information
because when a servlet throws an exception, the servlet container
typically sends debugging information back to the user.

Change-Id: Ice7f9fddeaa701a0a1d5869abad1c29bdf589bc7
2 files changed
tree: b1063a0efabe6b87d849002b8a15c37634479e1b
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK