Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70179

Allow user to re-choose rootfolder in DM when current root folder is not available

    Details

      Description

      Steps:

      1. Add a 'Documents and Media' portlet in page.
      2. Add a folder 'test'.
      3. Add a document 'testfile.txt' under 'test' folder.
      4. 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.
      5. 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.

        Attachments

        1. 70179_2.png
          70179_2.png
          18 kB
        2. 70179.png
          70179.png
          51 kB

          Issue Links

            Activity

              People

              • Assignee:
                sylvia.luan Sylvia Luan
                Reporter:
                emma.liu Emma Liu
                Participants of an Issue:
                Recent user:
                Michael Saechang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 36 weeks ago

                  Packages

                  Version Package
                  6.2.X EE