So, to give everyone a little background, i have glued together a joomla plugin using parts of joosco and the other plugin (by joomla tools)
basically, it is an updated joomla tools plugin that has been modified to operate as the currently logged in user. Using the Joosco plugin, joomla authenticates against Alfresco and the user holds an alf_ticket as a session ID. Then, the joomlatools plugin use the alf_ticket it picked up for all its operations. I also fixed the joomlatools to use the new WebPreview component (mostly). To get this to work, i had to modify the webpreview.js file in share with a switch that detects if alf_ticket is floating around and if it is, use a url with the alf_ticket. if not, use the original method url with no alf_ticket in the get
the situation is as follows
So, lets say i go into Share and upload 5 documents (2 page PDFs) then i do NOT look at the document page. as a result, no preview/webpreview is generated.
Next, i go into Joomla and navigate to one of those documents. The web previewer loads, the swirly loading thing comes up and the document previews successfully. Everything works as it should (as long as the preview hasn't been called anywhere before)
However, if i clear my browser cache, restart the browser and navigate back to the same document using the joomla plugin, the swirl will come up and then the preview will fail to load. Its a generic fail to transfer/load the preview error.
Now, if i go back into share and look at that document, the previewer always successfully loads the preview while in share. whether it is cached locally or not.
now, if i go back to the joomla plugin and look at the document, the preview will work (i assume because it was still cached from the share page)
clear my cache again and it does not work in joomla until I go into Share and it gets cached
from what i can tell, the error message was generated within the WebPreviewer.swf and i have no idea where to start.
Since i am running joomla on a separate server, i set the allowScripts in the instantiation of the previewer to All, so any site could make the previewer do things.
I thought this would strip any cross site issues but apparently it hasn't.
Any ideas? Ill post the code somewhere if anyone wants to take a crack.
Thanks
Adam