From bed005afef7d3a8e47d4982acec6572aa829d871 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 5 Apr 2012 00:01:51 -0300 Subject: [PATCH] Fix mindmap expport. --- .../security/aop/BaseSecurityAdvice.java | 2 +- .../webapp/WEB-INF/wisemapping-security.xml | 3 +- wise-webapp/src/main/webapp/jsp/login.jsp | 94 +++++++++---------- .../src/main/webapp/jsp/mindmapEditor.jsp | 3 + .../src/main/webapp/jsp/mindmapExport.jsp | 2 - 5 files changed, 50 insertions(+), 54 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/security/aop/BaseSecurityAdvice.java b/wise-webapp/src/main/java/com/wisemapping/security/aop/BaseSecurityAdvice.java index f779f678..1bf0652d 100755 --- a/wise-webapp/src/main/java/com/wisemapping/security/aop/BaseSecurityAdvice.java +++ b/wise-webapp/src/main/java/com/wisemapping/security/aop/BaseSecurityAdvice.java @@ -45,7 +45,7 @@ public abstract class BaseSecurityAdvice { } if (!isAllowed) { - throw new AccessDeniedSecurityException("User '" + user.getEmail() + "' not allowed to invoke:" + methodInvocation); + throw new AccessDeniedSecurityException("User '" + (user != null ? user.getEmail() : "none") + "' not allowed to invoke:" + methodInvocation); } } diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml index 3c593de6..dcc4a52e 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -30,7 +30,6 @@ - @@ -45,7 +44,7 @@ - + diff --git a/wise-webapp/src/main/webapp/jsp/login.jsp b/wise-webapp/src/main/webapp/jsp/login.jsp index fd155399..374b261c 100644 --- a/wise-webapp/src/main/webapp/jsp/login.jsp +++ b/wise-webapp/src/main/webapp/jsp/login.jsp @@ -1,24 +1,15 @@ -<%@ include file="/jsp/init.jsp" %> - +<%@ include file="/jsp/init.jsp" %>
-

What is New:

  • Links Between Nodes
  • FreeMind 0.9 Update
  • Improved HTML 5.0 Support
  • -
  • Firefox 4.0 is officially supported
  • +
  • Firefox 6.0 is officially supported
@@ -29,7 +20,7 @@
- + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + + +
  @@ -45,42 +36,42 @@
- : - - -
- : - - -
- - - -
  - "> + +
+ : + + +
+ : + + +
+ + + +
  + "> - -
@@ -100,5 +91,10 @@ -
Note: Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.5 instead. You can find more information how to configure MySQL here.
+
+ Note: Although HSQLDB is bundled with WiseMapping by + default during the installation, we do not recommend this database for production use. Please consider using + MySQL 5.5 instead. You can find more information how to configure MySQL here. +
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp index 29c92d05..82e60502 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp @@ -40,6 +40,9 @@ var userOptions = ${mindmap.properties}; options.zoom = userOptions.zoom; + // Set map id ... + options.mapId = mapId; + // Build designer ... var designer = buildDesigner(options); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp b/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp index 77d71cba..1abf5e56 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp @@ -112,8 +112,6 @@ // Finally, submit map ... form.submit(); - - MooDialog.Request.active.close(); });