+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java b/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java
index 3baf3a3c261..d0122e6a051 100644
--- a/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java
+++ b/java/com.sap.sse.security/src/com/sap/sse/security/jaxrs/api/SecurityResource.java
@@ -11,6 +11,7 @@ import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
+import org.apache.shiro.SecurityUtils;
import org.json.simple.JSONObject;
import com.sap.sse.security.User;
@@ -29,7 +30,13 @@ public class SecurityResource extends AbstractSecurityResource {
@Path("/hello")
@Produces("application/json;charset=UTF-8")
public Response sayHello() {
- return Response.ok("Hello!", MediaType.TEXT_PLAIN).build();
+ final String messageText;
+ if (SecurityUtils.getSubject().isAuthenticated()) {
+ messageText = "Hello "+SecurityUtils.getSubject().getPrincipal();
+ } else {
+ messageText = "Hello!";
+ }
+ return Response.ok(messageText, MediaType.TEXT_PLAIN).build();
}
@POST
diff --git a/java/pom.xml b/java/pom.xml
index 3374be9270a..f027f41b003 100755
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -60,6 +60,7 @@
com.sap.sailing.wwwcom.sap.sailing.www.eventscom.sap.sailing.xmlexport
+ com.google.gwt.devcom.google.gwt.osgicom.tractrac.clientmoduleorg.json.simple
@@ -85,9 +86,9 @@
com.sap.sailing.gwt.uicom.sap.sailing.domain.testcom.sap.sse.replication.testsupport
-
com.sap.sse.gwt.test
- -->
+
com.sap.sse.datamining.testcom.sap.sse.security.replication.testcom.sap.sse.security.test
@@ -260,6 +261,15 @@
${tycho-version}p2
+
+
+
+ eclipse-plugin
+ com.google.gwt.dev
+ 0.0.0
+
+
+ ${project.groupId}
diff --git a/wiki/local-gwt.md b/wiki/local-gwt.md
index 02e687f4165..0690be0ae51 100644
--- a/wiki/local-gwt.md
+++ b/wiki/local-gwt.md
@@ -28,4 +28,10 @@ One of the great strengths of GWT is the use of Eclipse as a Java source-level d
You can set breakpoints in your GWT Java code and inspect values for suspended threads as usual for any Java development.
-Note the reduced performance which is largely due to the way the Java VM and the browser plug-in communicate. In particular, many fine-grained changes to the DOM can be quite costly. Therefore, if you're only interested in server-side debugging, consider [compiling](#Local-GWT-Compile) the GWT code for better performance.
\ No newline at end of file
+Note the reduced performance which is largely due to the way the Java VM and the browser plug-in communicate. In particular, many fine-grained changes to the DOM can be quite costly. Therefore, if you're only interested in server-side debugging, consider [compiling](#Local-GWT-Compile) the GWT code for better performance.
+
+## Curious Errors
+
+There's a randomly occuring error, since the update to GWT 2.7, where an entry point fails to load. The Development Mode view of Eclipse shows the error
+**Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible**
+The problem can be "solved" by retrying until it works.
\ No newline at end of file