05-17-2011 11:18 AM
org.springframework.extensions.surf.exception.UserFactoryException: Unable to create user - failed to retrieve user metadata:
org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:177)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:176)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:99)
org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:203)
org.springframework.extensions.surf.RequestContextUtil.initRequestContext(RequestContextUtil.java:107)
org.springframework.extensions.surf.RequestContextUtil.initRequestContext(RequestContextUtil.java:54)
org.alfresco.web.site.SlingshotPageViewResolver.lookupPage(SlingshotPageViewResolver.java:57)
org.springframework.extensions.surf.mvc.PageViewResolver.canHandle(PageViewResolver.java:103)
org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:370)
org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:77)
org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1091)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1040)
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:74)
org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
com.tremolosecurity.filter.AutoIDMFilter.doFilter(AutoIDMFilter.java:90)
URL : 'http://localhost:8080/alfresco/s/webframework/content/metadata'
Method : 'GET'
Source IP : '127.0.0.1'
Source Port : '34303'
Header : 'user-agent=Jakarta Commons-HttpClient/3.1'
Header : 'host=localhost:8080'
Parameter : 'user=mboorshtein'
05-24-2011 11:41 AM
org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:188)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:176)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:99)
org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:203)
org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:176)
org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:131)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.populateRequestContext(AbstractWebFrameworkView.java:349)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:259)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
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:74)
fr.cvf.web.site.servlet.CVFSSOAuthenticationFilter.doFilter(CVFSSOAuthenticationFilter.java:343)
cause mère
org.json.JSONException: A JSONObject text must begin with '{' at character 8
org.json.JSONTokener.syntaxError(JSONTokener.java:413)
org.json.JSONObject.<init>(JSONObject.java:180)
org.json.JSONObject.<init>(JSONObject.java:420)
org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:182)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:176)
org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:99)
org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:203)
org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:176)
org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:131)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.populateRequestContext(AbstractWebFrameworkView.java:349)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:259)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
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:74)
fr.cvf.web.site.servlet.CVFSSOAuthenticationFilter.doFilter(CVFSSOAuthenticationFilter.java:343)
private void challengeOrPassThrough(FilterChain chain, HttpServletRequest req, HttpServletResponse res, HttpSession session) throws IOException, ServletException
{
try
{
// In this mode we can only use vaulted credentials. Do not proxy any request headers.
Connector conn = connectorService.getConnector(this.endpoint, AuthenticationUtil.getUserId(req), session);
ConnectorContext ctx = new ConnectorContext();
Response remoteRes = conn.call("/touch", ctx);
if (Status.STATUS_UNAUTHORIZED == remoteRes.getStatus().getCode())
{
if (logger.isDebugEnabled())
{
logger.debug("Repository session timed out - restarting auth process…");
}
String authHdr = remoteRes.getStatus().getHeaders().get(HEADER_WWWAUTHENTICATE);
if (authHdr != null)
{
// restart SSO login as the repo has timed us out
restartAuthProcess(session, req, res, authHdr);
}
else
{
// restart manual login
session.invalidate();
redirectToLoginPage(req, res);
}
return;
}
else
{
// we have local auth in the session and the repo session is also valid
// this means we do not need to perform any further auth handshake
if (logger.isDebugEnabled())
{
logger.debug("Authentication not required, chaining …");
}
chain.doFilter(req, res); => my breakpoint stops here and then it's impossible to know what's comming next
return;
}
}
catch (ConnectorServiceException cse)
{
throw new PlatformRuntimeException("Incorrectly configured endpoint ID: " + this.endpoint);
}
}
05-25-2011 10:21 AM
external.authentication.proxyHeader=X-Alfresco-Remote-User
external.authentication.proxyUserName
<Host name="HOSTNAME" authType="shibboleth" applicationId="APPLICATION_ID" requireSession="true" >
<Path name="wcs" requireSession="false" />
</Host>
The path means your shibboleth authentication won't be call when pointing to the folder wcs (ie HOSTNAME/wcs).05-25-2011 11:41 AM
external.authentication.proxyUserName=
external.authentication.proxyHeader=X-Alfresco-Remote-User
external.authentication.enabled=true
external.authentication.userIdPattern=
authentication.chain=external1:external,alfrescoNtlm1:alfrescoNtlm
Then I use Firefox with Modify-Headers plugin, setting X-Alfresco-Remote-User to admin.05-14-2012 09:17 PM
Been watching your case in jira https://issues.alfresco.com/jira/browse/ALF-8758, and I just cant see how this works in Share.
Browsing http://localhost:8080/alfresco I get logged in as admin
Browsing http://localhost:8080/share -Not automatically logged in, redirected to forms login.
What am I missing?
05-15-2012 03:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.