cancel
Showing results for 
Search instead for 
Did you mean: 

Thumbnail issue after migration from Alfresco 3.2 to 3.3

kma
Champ in-the-making
Champ in-the-making
Hi,

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 ?


Thanks,
Karsten
2 REPLIES 2

kma
Champ in-the-making
Champ in-the-making
No, thanks for link.

I have tried it now but I don't think it will do the job.
The migration code does only handle the 'thumbnail' type,
it does not do anything with the parent.
To read the thumbnails it is required that
the parent has the RenditionModel.ASPECT_RENDITIONED.

I think there is a migration problem or ?

Thanks,
Karsten