Issue Type: Bug Bug
Affects Versions: 1.0.0
Assignee: Daniel Bevenius
Components: examples
Created: 14/Mar/13 2:05 AM
Description:

To reproduce:
1. login with user John and add a new user.
2. Click on the newly added user
3. Try to logout.
The following exception will be diplayed:

Caused by: java.lang.RuntimeException: User do not exist
        at org.jboss.aerogear.security.picketlink.authz.IdentityManagementImpl.get(IdentityManagementImpl.java:69) [aerogear-security-picketlink-1.0.0-13032013-SNAPSHOT.jar:1.0.0-13032013-SNAPSHOT]
        at org.jboss.aerogear.security.picketlink.authz.IdentityManagementImpl$Proxy$_$$_WeldClientProxy.get(IdentityManagementImpl$Proxy$_$$_WeldClientProxy.java) [aerogear-security-picketlink-1.0.0-13032013-SNAPSHOT.jar:1.0.0-13032013-SNAPSHOT]
        at org.jboss.aerogear.controller.demo.Admin.show(Admin.java:55) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_35]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_35]

The reason for this is when the views show.jsp or remove.jsp are displayed the path is for them are show/username or show/remove, but the logout url on these pages is relative to the current page:

<p> <a href="logout">Logout</a></p>

So this would be a request to the server with show/logout which is why we getting the error message that the user does not exist.
Changing the above tag to the following should work:

<p> <a href="${pageContext.request.contextPath}/logout">Logout</a></p>
Fix Versions: 1.0.0
Project: AeroGear
Priority: Major Major
Reporter: Daniel Bevenius
Security Level: Public (Everyone can see)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira