-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Component/s: Documents & Media
-
Labels:
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:1
-
Git Pull Request:
Steps:
- Add a 'Documents and Media' portlet in page.
- Add a folder 'test'.
- Add a document 'testfile.txt' under 'test' folder.
- Go to lportal.PortletPreferences for the Documents and Media portlet preference from '<preference><name>rootFolderId</name><value>211294</value></preference>' (or whatever the rootFolderId is) to '<preference><name>rootFolderId</name><value>9999</value></preference>' or any value which does not a real rootFolderId.
Note:Clear DBcache through control panel -> server administration. - Go to the page in #1
Current behavior: there is 'Portlet is temporarily not available' warning displayed in UI (both in page and control panel). There is no way to change another folder as rootfolder. The following error was reported in console
com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 211294 at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:2678) at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:2696) at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.createRepositoryImpl(RepositoryLocalServiceImpl.java:422)
Expected behavior: Remind user ' The folder could not be found.' and allow user to re-choose root folder.
- relates
-
LPE-15659 Allow user to re-choose rootfolder in DM when current root folder is not available
-
- Closed
-