Legacy Knowledge Base
Published Jul. 2, 2025

I cannot set an external repository as the Documents and Media portlet's root folder

Written By

Tímea Bihari

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • I have a Documents and Media portlet on the page
  • I go to the configuration menu of the portlet and try to change the Root Folder

Result: I cannot set an external repository (for example Alfresco) as a root folder. The repository does not even show up here.

Environment

  • Liferay DXP 7.0+

Resolution

In Liferay Portal 6.2, it was possible to set an external repository, such as Alfresco as the Documents and Media portlet's root folder.

However, this feature has been removed via LPS-74806 for the following reasons:

  1. In the case of Documents and Media root folders, comments and assets, there are no permanent data stored in the DB that can be used to attach this information (as RepositoryEntry is not really persisted).
  2. Permissions should be set in the guest repository (Alfresco, Sharepoint, etc.), not in Liferay.

For (1) Liferay cannot simply store the information in the database. Elements can be removed or moved around in the backend repository at any time without Liferay noticing any of this. This would eventually lead to the RepositoryEntry table being filled with lots of invalid data, which also would be very expensive to purge.

 

Additional Information

  • It is possible to bring back the feature by reverting the parts of LPS-74806 that disabled external repositories to be set as root folders.
  • Please note that the above is considered as customization. Regarding customization and actual implementation questions, our assistance options are unfortunately limited as Liferay Support is mainly for handling technical malfunctions with the portal. Getting assistance for how to implement custom development can be discussed with our Global Services Team.

 

Did this article resolve your issue ?

Legacy Knowledge Base