AEM Page Export, not working for non-admin users

Avatar

Avatar

dileepak3436603

Avatar

dileepak3436603

dileepak3436603

19-07-2018

Using references from The Page Exporter and Mobile with Content Sync , I have implemented page exporter configuration.

With this, in admin login, http://localhost:4502/content/something.export.zip works fine. This downloads a ZIP file with all HTML, images, CSS and JS.

But with any other login, even though the user is of administrator group will only download empty zip file.

Please help resolve this.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

21-07-2018

For export action, apart from read permissions of content below permission is required at /var/contentsync.

Screen Shot 2018-07-21 at 2.17.05 PM.png

for my test user to perform export, minimum permission is

Screen Shot 2018-07-21 at 2.20.51 PM.png

Thanks

Arun

Answers (6)

Answers (6)

Avatar

Avatar

dileepak3436603

Avatar

dileepak3436603

dileepak3436603

23-07-2018

Thanks it worked in localhost with permission to /var/contentsync.

But still server downloads 1B sized corrupted ZIP file at our server, with full permissions to every directory possible of CRX.

1534326_pastedImage_0.png

1534327_pastedImage_1.png

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

20-07-2018

YOu did not add the correct permissions as Arun stated. I added most permissions to user Dan i used in video. For testing purposes, click all permissons in top row and try again.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

20-07-2018

Hi,

the issue is with the permission.

you can replicate by just adding user in admin group, it will work.

for testing you can create demo group with all the permission and add user, it will work then.

If you need I can extract exact permission.

Avatar

Avatar

dileepak3436603

Avatar

dileepak3436603

dileepak3436603

20-07-2018

Hi Scott MacDonald,

Thanks for response, I did the following after watching the video, but with fail.

1) I created a fresh instance of AEM-6.2.

2) Logged in to available user: author/author, which had permission to the content required. (Screenshot 1)

3) Opened the page, which opened without any problem. (Screenshot 2)

4) Modified extension as "export.zip". Which gave an error (Screenshot 3)

5) So loaded URL without "editor.html", which also gave an error (http://localhost:4502/content/geometrixx-outdoors/en/company/our-story.export.zip ) (Screenshot 4)

6) Configured export path to be default OOTB one. (Screenshot 5)

7) Same error on page. (Screenshot 6)

Screenshot 1:

Capture.PNG

Screenshot 2:

Capture1.PNG

Screenshot 3:

1531800_pastedImage_2.png

Screenshot 4:

1531801_pastedImage_3.png

Screenshot 5:

1531802_pastedImage_5.png

Screenshot 6:

1531803_pastedImage_6.png

Regards,

Dileepa

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

19-07-2018

I was able to successfully export a page using a non-admin user:

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

19-07-2018

Have you tried giving permissions to the other users to access the content you are trying to export?