From b855da47d0d892a8fd705882d240c82e574fc517 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 31 Aug 2012 20:56:51 -0300 Subject: [PATCH] Add more info to notification email. --- .../main/java/com/wisemapping/mail/NotificationService.java | 3 ++- wise-webapp/src/main/resources/mail/errorNotification.vm | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java b/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java index 593f2386..7cc3e428 100644 --- a/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java +++ b/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java @@ -173,8 +173,9 @@ final public class NotificationService { model.put("fullName", (user != null ? user.getFullName() : "'anonymous'")); model.put("email", (user != null ? user.getEmail() : "'anonymous'")); model.put("userAgent", request.getHeader(UserAgent.USER_AGENT_HEADER)); - model.put("server", request.getScheme() + "://" + request.getServerName() + "/" + request.getServerPort()); + model.put("server", request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()); model.put("requestURI", request.getRequestURI()); + model.put("method", request.getMethod()); model.put("remoteAddress", request.getRemoteAddr()); try { diff --git a/wise-webapp/src/main/resources/mail/errorNotification.vm b/wise-webapp/src/main/resources/mail/errorNotification.vm index a0765eaf..bb37aa02 100644 --- a/wise-webapp/src/main/resources/mail/errorNotification.vm +++ b/wise-webapp/src/main/resources/mail/errorNotification.vm @@ -5,8 +5,10 @@
  • Email: ${email}
  • Server: ${server}
  • RequestURI: ${requestURI}
  • +
  • Method: ${method}
  • User Agent: ${userAgent}
  • -
  • remoteAddress: ${remoteAddress}
  • +
  • Remote Address: ${remoteAddress}
  • + #if($mapId)
  • Mindmap Id: ${mapId}