AnsweredAssumed Answered

authentication on myspaces webscript redirects to login

Question asked by robertoroberto on Feb 14, 2008
Hi, I use "myspaces" script with authentication by ticket (calling /wcservice instead of /service).
I have thi problem:
It redirect me on Alfresco login page beacuse when the script creates myspacepanel, ticket is lost in request to this script.
Why? Can you help me?

12:48:21,375 DEBUG [web.scripts.WebScriptServlet] Processing request (GET) http:
//localhost:8080/alfresco/wcservice/myspaces?ticket=TICKET_17de5cd337304148d2e22
14e6a81067adf5a28ba&p=/Company%20Home/User%20Homes/co1&type=null
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Processing script url (GET) /m
yspaces
12:48:21,375 DEBUG [web.scripts.DeclarativeWebScriptRegistry] Web Script index l
ookup for uri /myspaces took 0ms
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Agent: Firefox
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Format style: any, Default for
mat: html
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Invoking Web Script org/alfres
co/portlets/myspaces.get (unauthenticated)
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Begin transaction: required
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Current authentication: unauth
enticated
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Authentication required: user
12:48:21,375 DEBUG [web.scripts.WebScriptRuntime] Guest login: false
12:48:21,375 DEBUG [web.scripts.WebClientAuthenticator] Alfresco ticket provided
: true
12:48:21,375 DEBUG [web.scripts.WebClientAuthenticator] Authenticating ticket TI
CKET_17de5cd337304148d2e2214e6a81067adf5a28ba
12:48:21,390 DEBUG [web.scripts.DeclarativeWebScript] Rendering response: conten
t type=text/html, status=200
12:48:21,390 DEBUG [web.scripts.DeclarativeWebScript] Rendering template 'org/al
fresco/portlets/myspaces.get.html.ftl'
12:48:21,500 DEBUG [web.scripts.AbstractWebScript] Rendered template org/alfresc
o/portlets/myspaces.get.html.ftl in 110ms
12:48:21,500 DEBUG [web.scripts.WebScriptRuntime] Authentication reset: unauthen
ticated
12:48:21,500 DEBUG [web.scripts.WebScriptRuntime] End transaction: required
12:48:21,515 DEBUG [web.scripts.WebScriptRuntime] Web Script org/alfresco/portle
ts/myspaces.get executed in 140ms
12:48:21,515 DEBUG [web.scripts.WebScriptRuntime] Processed script url (GET) /my
spaces in 140ms
12:48:21,687 DEBUG [web.scripts.WebScriptServlet] Processing request (GET) http:
//localhost:8080/alfresco/wcservice/myspacespanel?p=/Company%20Home/User%20Homes
/co1&f=0&h=workspace://SpacesStore/acfc0178-dae3-11dc-8aef-9b105bca62a2
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Processing script url (GET) /m
yspacespanel
12:48:21,687 DEBUG [web.scripts.DeclarativeWebScriptRegistry] Web Script index l
ookup for uri /myspacespanel took 0ms
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Agent: Firefox
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Format style: any, Default for
mat: html
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Invoking Web Script org/alfres
co/portlets/myspacespanel.get (unauthenticated)
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Begin transaction: required
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Current authentication: unauth
enticated
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Authentication required: user
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Guest login: false
12:48:21,687 DEBUG [web.scripts.WebClientAuthenticator] Alfresco ticket provided
: false
12:48:21,687 DEBUG [web.scripts.WebClientAuthenticator] Authenticating session
12:48:21,687 DEBUG [web.scripts.WebClientAuthenticator] Redirecting to Alfresco
Login
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Authentication reset: unauthen
ticated
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] End transaction: required
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Web Script org/alfresco/portle
ts/myspacespanel.get executed in 0ms
12:48:21,687 DEBUG [web.scripts.WebScriptRuntime] Processed script url (GET) /my
spacespanel in 0ms

Outcomes