AnsweredAssumed Answered

Problem with thumbnail REST API

Question asked by alex_chew on May 16, 2012
Latest reply on May 19, 2012 by danlangford
Hi,

Are there some restrictions while using thumbnail REST API? FireBug complains a "too many recursive calls" error while I am trying to get thumbnail of the same document from two different dashlets.  Below is the code fragment I used to retrieve thumbnail of a document.

var thumbnailUrl = Alfresco.constants.PROXY_URI + "api/node/" + issue.attachNodeRef.replace(":/", "") + "/content/thumbnails/doclib?c=queue&ph=true";

The requirement is:
Dashlet A will display all issues that assigned to current user. If the issue has attachments then the thumbnail will be displayed. The backend web script decides which attachment will be used.
Dashlet B will display all issues that created by current user. A thumbnail will be displayed if the issue has at least one attachment.

The detailed problem is:
It works well if I only deploy one of them to site dashboard. But when I deploy both of them the FireFox goes dead while I am trying to enter the site dashboad.

Is this caused by wrong arguments ? Any clues will be appreciated. Many thanks.

Best Regards,
Alex

Outcomes