diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-06-25 13:53:17 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-06-27 14:52:33 +0000 |
commit | 0ba894d63b83f44aa77b925a9bda127c82237d75 (patch) | |
tree | 7435a98263f8107d9a184b2a45ba0770d6fe534a /server/src/com | |
parent | d8f1d1ebfbe5bdae8e3fbaafc2d5513245528c94 (diff) | |
download | vaadin-framework-0ba894d63b83f44aa77b925a9bda127c82237d75.tar.gz vaadin-framework-0ba894d63b83f44aa77b925a9bda127c82237d75.zip |
Remove VaadinServlet.handleServiceSecurityException (#14082)
Change-Id: I80029235997e29e0d430bccfd3a7b050598e4031
Diffstat (limited to 'server/src/com')
-rw-r--r-- | server/src/com/vaadin/server/VaadinServlet.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/server/src/com/vaadin/server/VaadinServlet.java b/server/src/com/vaadin/server/VaadinServlet.java index 81c3f374ea..12e7c28cd8 100644 --- a/server/src/com/vaadin/server/VaadinServlet.java +++ b/server/src/com/vaadin/server/VaadinServlet.java @@ -547,42 +547,6 @@ public class VaadinServlet extends HttpServlet implements Constants { return DEFAULT_THEME_NAME; } - private void handleServiceSecurityException(VaadinServletRequest request, - VaadinServletResponse response) throws IOException, - ServletException { - - try { - /* - * We might have a UI, but we don't want to leak any information in - * this case so just use the info provided in the request. - */ - SystemMessages ci = getService().getSystemMessages( - request.getLocale(), request); - if (ServletPortletHelper.isUIDLRequest(request)) { - // send uidl redirect - getService().writeStringResponse( - response, - JsonConstants.JSON_CONTENT_TYPE, - VaadinService.createCriticalNotificationJSON( - ci.getCommunicationErrorCaption(), - ci.getCommunicationErrorMessage(), - INVALID_SECURITY_KEY_MSG, - ci.getCommunicationErrorURL())); - } else if (ServletPortletHelper.isHeartbeatRequest(request)) { - response.sendError(HttpServletResponse.SC_FORBIDDEN, - "Forbidden"); - } else { - // 'plain' http req - e.g. browser reload; - // just go ahead redirect the browser - response.sendRedirect(ci.getCommunicationErrorURL()); - } - } catch (SystemMessageException ee) { - throw new ServletException(ee); - } - - log("Invalid security key received from " + request.getRemoteHost()); - } - /** * Check if this is a request for a static resource and, if it is, serve the * resource to the client. |