cancel
Showing results for 
Search instead for 
Did you mean: 

Share 3.3 login with e-mail address like username

louise
Champ in-the-making
Champ in-the-making
Unable to show dashboard for users including special characters (like ".") in username with Share 3.3 (dev r19624), see following result (missing ".hu" in name to resolve) after login. Alfresco explorer and mobile login works.

Username: louise@louise.hu

URL: https://localhost/share/page/user/louise%40louise.hu/dashboard


javax.servlet.ServletException: Could not resolve view with name 'user/louise@louise' 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)

Username: louise.hu

URL: https://localhost/share/page/user/louise.hu/dashboard


javax.servlet.ServletException: Could not resolve view with name 'user/louise' 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)
27 REPLIES 27

jasondalycan
Champ in-the-making
Champ in-the-making
Hi Kevin,

Is resolving this item a short-term work item or will it take a greater work-effort to resolve this issue?  I can assist if need be (I'm on a bit of a timeline to deploy 3.3 and am considering working on this patch myself if need be).

Have you identified the whereabouts within the code that this bug results from?

Let me know…

cheers
-JASON

joe_l3
Confirmed Champ
Confirmed Champ
Hi all,
I want to confirm the same problem for me!
My users are in the "name.surname" format…. but login getting the same error message:
javax.servlet.ServletException: Could not resolve view with name ………. in servlet with name 'Spring Surf Dispatcher Servlet'
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)……..
The admin user works just fine, as does the Alfresco web client.
===================
Alfresco Community 3.3

Thanks for all.

jasondalycan
Champ in-the-making
Champ in-the-making
Hi joe.l3,

Downloading revision 19808 (Alfresco Community 3.3G) from the Alfresco SVN repository resolves this issue, but this revision contains a bug that results in the inaccessibility of Alfresco Share collaboration sites upon restart of Tomcat (Spring errors are thrown).

cheers
-JASON

mikeh
Star Contributor
Star Contributor
Hi joe.l3,

Downloading revision 19808 (Alfresco Community 3.3G) from the Alfresco SVN repository resolves this issue, but this revision contains a bug that results in the inaccessibility of Alfresco Share collaboration sites upon restart of Tomcat (Spring errors are thrown).

cheers
-JASON
I'm not seeing that bug - is it reproducible? If so, could you raise it in JIRA please.

Thanks,
Mike

jasondalycan
Champ in-the-making
Champ in-the-making
This item has been raised on JIRA by kevinr:

https://issues.alfresco.com/jira/browse/ALF-2581

cheers
-JASON

mikeh
Star Contributor
Star Contributor
This item has been raised on JIRA by kevinr:

https://issues.alfresco.com/jira/browse/ALF-2581

cheers
-JASON
Ah that one - ok. Sounded like you'd spotted something else for a minute.

Thanks,
Mike

joe_l3
Confirmed Champ
Confirmed Champ
Thanks a lot JASON  Smiley Happy .
About the bug on inaccessibility of Share upon restart of Tomcat, I confirm that I had already encountered the problem after a migration from 3.2 to 3.3. I posted my problem at this link http://forums.alfresco.com/en/viewtopic.php?f=47&t=26339
Some news about the new release date?
joe.l3

jasondalycan
Champ in-the-making
Champ in-the-making
Hi Kevin,

I see that this item has been closed in Jira (https://issues.alfresco.com/jira/browse/ALF-2380) but when testing build 20159 I still get the same error.

Steps to reproduce:

    Enable Alfresco in Multi-Tenant mode
    Create a site
    Restart tomcat
    Visit the newly created site
    Exception is thrown
Following is the stack trace I received when visiting a site after restarting Tomcat:


javax.servlet.ServletException: Could not resolve view with name 'site/test2/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)


Thanks
-JASON

billmce
Champ in-the-making
Champ in-the-making
Has this been resolved in the currently available download?
We use periods in our user login names (firstname.lastname) and are experiencing the same problem.
The download version doesn't indicate build number.

Thanks in advance.

louise
Champ in-the-making
Champ in-the-making
So, another issue with previosly created users…

We've a 3.2 installation with lot of users with e-mail like names (john.doe@some.net). The schema upgrade process works while 3.2->3.3 transfer, accounts works with Alfresco Explorer and webscripts, but not in Share:

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
   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.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
   org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:179)
   org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:165)
   org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:99)
   org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:202)
   org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:175)
   org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:130)

org.springframework.extensions.surf.exception.UserFactoryException: Unable to create user - failed to retrieve user metadata:
   org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:168)
   org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:165)
   org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:99)
   org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:202)
   org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:175)
   org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:130)

Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.
The problematic instruction:
———-
==> ${val?datetime} escaped ${jsonUtils.encodeJSONString(val?datetime)} [on line 102, column 39 in org/alfresco/webframework/metadata.get.html.ftl]
in user-directive serializeHash [on line 51, column 12 in org/alfresco/webframework/metadata.get.html.ftl]
in user-directive serialize [on line 7, column 17 in org/alfresco/webframework/metadata.get.html.ftl]
———-