cancel
Showing results for 
Search instead for 
Did you mean: 

webscripts, tickets, livecycle content services

stevereiner
Champ in-the-making
Champ in-the-making
Does anyone know if Adobe LiveCycle Content Services ES  web scripts support something like the alf_ticket param available with regular alfresco? On content services the service/api/login  web script returns a saml assertion xml file in the ticket element instead of a single ticket value.

Thanks,
Steve
13 REPLIES 13

demone
Champ in-the-making
Champ in-the-making
Hi Steve,

thank you very much  Smiley Happy
I tried other code with the setDoAuthentication(true) and it's not working  :evil:
What you see is the original Alfresco administrator (admin) 'cause as I said I'm trying to authenticate with it right now just to be sure it's not 'some Adobe' problem.

The link you gave me refers to webscripts and I think the UploadContentServlet is not a webscript (or it's ???)
This is a webscript: http://localhost:8080/alfresco/service/api/path/Workspace/SpacesStore/Company%20Home/children
This is where I'm pointing: http://localhost:8080/alfresco/upload/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf

I tried using the basic authentication on webscripts directly and it works…so there must be some problem with this servlet only (I think it doesn't support basic authentication)

I'm happy it's working in your case Smiley Tongue

demone
Champ in-the-making
Champ in-the-making
That's my latest attempt with PreemptiveBasicAuthentication.java from http://hc.apache.org/httpcomponents-client/tutorial/html/authentication.html#d4e986

0 [main] WARN client.DefaultHttpClient  - Authentication error: basic authorization challenge expected, but not found

So it definitely doesn't support basic auth  Smiley Sad  what to do ?

stevereiner
Champ in-the-making
Champ in-the-making
I actually haven't tried calling the upload servlet. When I said basic authentication worked I was talking about getting basic authentication to work calling webscripts on LiveCycle ES Content Services
Missed that you were trying with regular Alfresco too. It may be the case that a ticket header can be used with LC CS, but not with regular Alfresco. 

I checked the source of LC content services ES 8.2.1 In C:\Adobe\LiveCycle8.2\LiveCycle_ES_SDK\misc\ContentServices\adobe-contentservices-sdk.zip\src\src\web-client-src.zip\java\org\alfresco\web\app\servlet\BasicServlet.java  and seemed to just have the ticket parm, nothing about a ticket header, although some other authentication filters may kick in.    Note the newer LC ES2 left out having the adobe-contentservices-sdk.zip in its LiveCycle_ES_SDK\misc\contentservices dir.

You may want to try using the webdav or cifs UIs to do your transfers.

demone
Champ in-the-making
Champ in-the-making
I finished using the ftp exposed by LC CS on port 8021 this because even using the servlet you actually need to bufferize the request (and file to upload) into memory so its not good for big files size.
The ticket authentication is still a mistery to me this time I found a workaround.

Thanks for your help  😎