Skip to content

Images included into blog/forum rich text posts or messages can not be trasferred #21

@YuriyShestakov

Description

@YuriyShestakov

I try to transfer AEM communities blog that contains posts with a lot of images included directly in bodies.
Using this command: http://server/services/social/ugc/export?path=/content/path/to/blog/page the application produces archive export.zip, that contains only one file: jcr:content/root/body/layoutcontainer/journal.json. This file contains all posts from my blog.
When I tried to import this file into a new AEM instance, blog posts appeared without images, they contained only text.

I opened the file and found in url-encoded jcr:description fields all my posts, and they contain references to images, such as:
<img src="/content/usergenerated/asi/mongo/attachments/path/to/blog/page/jcr%3acontent/root/body/layoutcontainer/journal/_-IOJi/images/banner.jpg">, but this file doesn't contain these images.

However, the Json file contains File Attachments to the posts (files that placed below posts) (I mean fields ugcExport:attachments).

We need a mechanism to pack all related images from blog posts (or just all existing images) into this or new package to transfer them to new AEM instance. Without transferring all RTE contents this tool seems to be not very practically useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions