AnsweredAssumed Answered

Thumbnail issue after migration from Alfresco 3.2 to 3.3

Question asked by kma on Apr 19, 2010
Latest reply on Apr 20, 2010 by kma

After migration from Alfresco 3.2 to 3.3, it is not possible to read thumbnails generated on Alfresco 3.2.
The following call return 0 nodes:

List<NodeRef> thumbnails = thumbnailService.getThumbnails(nodeRef, ContentModel.PROP_CONTENT, null, null);

As far as I can see, it is because the aspect 'rn:renditioned' is missing,
by adding this aspect like this:

if (nodeService.hasAspect(nodeRef, ContentModel.ASPECT_THUMBNAILED)) {
   if (!nodeService.hasAspect(nodeRef, RenditionModel.ASPECT_RENDITIONED)) {
      nodeService.addAspect(nodeRef, RenditionModel.ASPECT_RENDITIONED, null);

it  works.

Is this the correct way to fix it ?