diff --git a/wise-webapp/src/main/webapp/jsp/init.jsp b/wise-webapp/src/main/webapp/jsp/init.jsp
index fd3a9545..f3f9ff45 100644
--- a/wise-webapp/src/main/webapp/jsp/init.jsp
+++ b/wise-webapp/src/main/webapp/jsp/init.jsp
@@ -8,7 +8,7 @@
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
- User user = Utils.getUser(request);
+ User user = Utils.getUser(false);
request.setAttribute("principal", user);
UserAgent userAgent = null;
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapPublish.jsp b/wise-webapp/src/main/webapp/jsp/mindmapPublish.jsp
index 52286ea1..4f29ef90 100644
--- a/wise-webapp/src/main/webapp/jsp/mindmapPublish.jsp
+++ b/wise-webapp/src/main/webapp/jsp/mindmapPublish.jsp
@@ -45,12 +45,12 @@
<iframe style="width:600px;height:400px;border: 1px
-solid black" src="http://www.wisemapping.com/c/maps/${mindmap.id}/embed?zoom=1"> </iframe>
+solid black" src="${baseUrl}/c/maps/${mindmap.id}/embed?zoom=1"> </iframe>
:
-
diff --git a/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapTCase.java b/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapTCase.java
index 6a6adad5..6d914221 100644
--- a/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapTCase.java
+++ b/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapTCase.java
@@ -1,6 +1,7 @@
package com.wisemapping.test.rest;
+import com.wisemapping.exceptions.WiseMappingException;
import com.wisemapping.rest.model.RestMindmapInfo;
import com.wisemapping.rest.model.RestMindmap;
import com.wisemapping.rest.model.RestMindmapList;
@@ -41,7 +42,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void listMaps(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void listMaps(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -74,7 +75,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void deleteMap(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void deleteMap(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -94,7 +95,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void changeMapTitle(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void changeMapTitle(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -113,7 +114,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void validateMapsCreation(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void validateMapsCreation(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -140,7 +141,7 @@ public class RestMindmapTCase {
@Test(dataProvider = "ContentType-Provider-Function")
- public void changeMapDescription(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void changeMapDescription(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -159,7 +160,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void updateMapXml(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void updateMapXml(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -180,7 +181,7 @@ public class RestMindmapTCase {
}
@Test(dataProvider = "ContentType-Provider-Function")
- public void cloneMap(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void cloneMap(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -205,7 +206,7 @@ public class RestMindmapTCase {
@Test(dataProvider = "ContentType-Provider-Function")
- public void updateMap(final @NotNull MediaType mediaType) throws IOException { // Configure media types ...
+ public void updateMap(final @NotNull MediaType mediaType) throws IOException, WiseMappingException { // Configure media types ...
final HttpHeaders requestHeaders = createHeaders(mediaType);
final RestTemplate template = createTemplate();
@@ -237,7 +238,7 @@ public class RestMindmapTCase {
return response.getBody();
}
- private URI addNewMap(@NotNull HttpHeaders requestHeaders, @NotNull RestTemplate template, @NotNull String title, @Nullable String xml) throws IOException {
+ private URI addNewMap(@NotNull HttpHeaders requestHeaders, @NotNull RestTemplate template, @NotNull String title, @Nullable String xml) throws IOException, WiseMappingException {
final RestMindmap restMindmap = new RestMindmap();
restMindmap.setTitle(title);
restMindmap.setDescription("My Map Desc");
@@ -251,7 +252,7 @@ public class RestMindmapTCase {
}
- private URI addNewMap(@NotNull HttpHeaders requestHeaders, @NotNull RestTemplate template, @NotNull String title) throws IOException {
+ private URI addNewMap(@NotNull HttpHeaders requestHeaders, @NotNull RestTemplate template, @NotNull String title) throws IOException, WiseMappingException {
return addNewMap(requestHeaders, template, title, null);
}