changeset 31:48b3a2443fd6

fixed exception when opening root symbol server url
author Evgeniy.Koshkin
date Fri, 09 Aug 2013 16:19:21 +0400
parents c14e96398b62
children 2ae714d6faa5
files server/src/jetbrains/buildServer/symbols/DownloadSymbolsController.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/server/src/jetbrains/buildServer/symbols/DownloadSymbolsController.java	Fri Aug 09 16:06:34 2013 +0400
+++ b/server/src/jetbrains/buildServer/symbols/DownloadSymbolsController.java	Fri Aug 09 16:19:21 2013 +0400
@@ -46,6 +46,12 @@
   @Override
   protected ModelAndView doHandle(@NotNull HttpServletRequest request, @NotNull HttpServletResponse response) throws Exception {
     final String requestURI = request.getRequestURI();
+
+    if(requestURI.endsWith(APP_SYMBOLS)){
+      response.sendError(HttpServletResponse.SC_OK, "TeamCity Symbol Server available");
+      return null;
+    }
+
     if(requestURI.endsWith(COMPRESSED_FILE_EXTENSION)){
       WebUtil.notFound(request, response, "File not found", null);
       return null;