cancel
Showing results for 
Search instead for 
Did you mean: 

What's the difference between /share and /share/user/hello

zengqingyi12
Champ in-the-making
Champ in-the-making
I used ldap synchronization in our system and after some new users are synchronized into alfresco, if I just use:
http://localhost:8080/share/user/hello/dashboard   to login alfresco, I will get the following exception:
javax.servlet.ServletException: Could not resolve view with name 'user/hello/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:67)
   org.alfresco.web.site.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:187)
Instead, if I use http://localhost:8080/share  and then alfresco will redirect to the exact same page: /share/user/hello/dashboard without any problems.

My question is what's the difference between the two URL ?  Where can I find those differences ?
Thanks and regards!
3 REPLIES 3

croc
Champ in-the-making
Champ in-the-making
Hi,
I could say there's no difference, the reason being that: if you type http://localhost:8080/share, the application goes to the web.xml file to check the welcome-file-list tag, then it finds index.jsp as the first welcome-file. Now it opens that file, and inside index.jsp you'll find

<%
  response.sendRedirect(request.getContextPath() + "/page/site-index");
%>

which redirects the request/page to site-index.jsp, and this is where they build that URL
http://localhost:8080/share/user/hello/dashboard
you mentioned above. which means it doesn't help memorizing the whole URL because the system will get that for you if you just type in http://localhost:8080/share.

Now something you need to know is the hello you have there is the username for the user who is logged in or registered. now if you have created or added the user you forst need to login as that user, so you that that user will have his/her own dashboard window, if not changed it uses the default.
Now the reason you are getting that error is simply because the dashboard with that name doesn't exist. and the reason why you were confused is because, you used http://localhost:8080/share then, logged in as hello. and it redirected you to the same URL. It is simply because that dashboard or the user exist.

So if you change that to admin or any user, it will use the dashboard for that user.

Hope this helps

Thnx,
Croc

croc
Champ in-the-making
Champ in-the-making
The problem here is that it gives you access to other people's dashboard, though you still needs permissions to can change something, so i dn't think it's worth it to raise a Jira fo this.

Thnx,
Croc

mikeh
Star Contributor
Star Contributor
The problem here is that it gives you access to other people's dashboard, though you still needs permissions to can change something, so i dn't think it's worth it to raise a Jira fo this.
That will no longer be possible from 3.4.c

Thanks,
Mike