Source:
<code>public FileHash verify(HttpServletRequest request, HttpServletResponse response) throws IOException, FileUploadException { FileHash result = new FileHash(); try { result.uri = request.getParameter(URI_KEY); String sha1 = request.getParameter(SHA1_KEY); if (StringUtils.isBlank(result.uri)) { warn("verify: uri is required but none provided") .log(); response.setStatus(HttpStatus.BAD_REQUEST_400); result.error = true; result.message = "Please provide uri and sha1 parameters."; return result; } if (StringUtils.isBlank(sha1)) { warn("verify: sha1 is required but none provided") .log(); response.setStatus(HttpStatus.BAD_REQUEST_400); result.error = true; result.message = "Please provide uri and sha1 parameters."; return result; } Path path = PathUtils.toPath(result.uri, Website.path()); if (!Files.exists(path)) { <START> warn("verify: file does not exist in website desitantion") <END> .websitePath(Website.path()) .uri(path.toString()) .log(); result.message = "File does not exist in the destination: " + result.uri; return result; } result.sha1 = Hash.sha(path); result.matched = StringUtils.equals(sha1, result.sha1); result.message = "SHA matched: " + result.matched; if (!result.matched) { result.message += " (" + sha1 + " -> " + result.sha1 + ")"; } } catch (Exception e) { error(e, "verify: unexpected error verifing").log(); response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR_500); result.error = true; result.message = ExceptionUtils.getStackTrace(e); } return result; }</code><technical_language>typo destination</technical_language>

Target:
public FileHash verify(HttpServletRequest request, HttpServletResponse response) throws IOException, FileUploadException { LogBuilder log = logBuilder().endpoint(this); FileHash result = new FileHash(); try { result.uri = request.getParameter(URI_KEY); String sha1 = request.getParameter(SHA1_KEY); if (StringUtils.isBlank(result.uri)) { log.responseStatus(BAD_REQUEST_400) .warn("bad request: uri is required but none provided"); response.setStatus(BAD_REQUEST_400); result.error = true; result.message = "Please provide uri and sha1 parameters."; return result; } log.uri(result.uri); if (StringUtils.isBlank(sha1)) { log.responseStatus(BAD_REQUEST_400) .warn("bad request: verify: sha1 is required but none provided"); response.setStatus(BAD_REQUEST_400); result.error = true; result.message = "Please provide uri and sha1 parameters."; return result; } Path path = PathUtils.toPath(result.uri, Website.path()); if (!Files.exists(path)) { log.websitePath(Website.path()) .responseStatus(BAD_REQUEST_400) .warn("bad request: verify: file does not exist in website destination"); result.message = "File does not exist in the destination: " + result.uri; return result; } result.sha1 = Hash.sha(path); result.matched = StringUtils.equals(sha1, result.sha1); result.message = "SHA matched: " + result.matched; if (!result.matched) { result.message += " (" + sha1 + " -> " + result.sha1 + ")"; } } catch (Exception e) { log.responseStatus(INTERNAL_SERVER_ERROR_500) .error(e, "verify: unexpected error verifing"); response.setStatus(INTERNAL_SERVER_ERROR_500); result.error = true; result.message = ExceptionUtils.getStackTrace(e); } return result; }