webscripts, tickets, livecycle content services

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2008 03:18 PM
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
Thanks,
Steve
Labels:
- Labels:
-
Archive
13 REPLIES 13

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2009 04:41 AM
Hi Steve,
thank you very much
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
thank you very much

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


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2009 05:52 AM
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
what to do ?
0 [main] WARN client.DefaultHttpClient - Authentication error: basic authorization challenge expected, but not found
So it definitely doesn't support basic auth


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2009 01:45 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2009 01:07 PM
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 😎
The ticket authentication is still a mistery to me this time I found a workaround.
Thanks for your help 😎
