cancel
Showing results for 
Search instead for 
Did you mean: 

session ticket not available in custom document library action javascript

danielh
Champ in-the-making
Champ in-the-making
I'm trying to open a document by way of a second server running a custom document renderer. The problem I've run into is that the javascript referenced from the action tag in share-config-custom.xml appears to lack access to many of the Javascript root variables.

In particular, "session" is not available. Its ticket property is necessary for the other system to retrieve the document from Alfresco.

I'm currently getting 401s. My Alfresco extension embeds a URL for its document within a URL that drives the render system's RESTful interface.

Is there another way to navigate from whatever objects -are- in scope for the Javascript to the session ticket I need?

Thanks.

Dan Hankins
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

the client side JavaScript reference by action configuration is executed within the browser and has access to none of the documented root objects of Alfresco JavaScript API which relates to server side JavaScript. Your best bet would be to include the session ticket you require as a <a href="http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fdoclib-repo...">custom response</a> which you can access via metadata.custom on the client side to incorporate into whatever Share UI structure you require.

Regards
Axel