cancel
Showing results for 
Search instead for 
Did you mean: 

alf_ticket not working?

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

I am using 3.4.d & i have implemented a java backed web script with following url:

http://localhost:8080/alfresco/service/webscripts/search/searchSpace?spaceName=Alfresco%20WCM/Author...

When i am using web browser to invoke it, browser shows a login pop up.

Then i use following web script to get a valid ticket:

http://localhost:8080/alfresco/service/api/login?u=admin&pw=admin

And appending this valid ticket to above web script as

http://localhost:8080/alfresco/service/webscripts/search/searchSpace?spaceName=Alfresco%20WCM/Author...

I am expecting that no pop up will be shown but still i get a pop up for login which should not be the case.

Just unable to count where i am going wrong.

Any idea?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
You have two question marks in your URL, I suspect the second one should be an ampersand.

dynamolalit
Champ on-the-rise
Champ on-the-rise
Thanks Rogers,

it resolved the issue…silly mistake.. Smiley Surprisedops:

Correct url should be

http://localhost:8080/alfresco/service/webscripts/search/searchSpace?spaceName=Alfresco%20WCM/Author...

Also i want to know how ticket mechanism works.How a ticket is mapped to a user?How it is maintained & for how long? What happens once it is expired?

What is its duration for valid ticket?How can i get/renew a ticket after it is expired?Do i need username & password or only using username can i get a valid ticket if that user has already been authenticated.

Further Is it applied only to web scripts or does alfresco use ticket mechanism for all users for all operations whether it is performed by explorer or web script or web service?

dynamolalit
Champ on-the-rise
Champ on-the-rise
Any Help Please.