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

link to page component is not loading next results for site administrator

    Details

      Description

      As a site administrator, when creating a web content containing a field of type link to page, if there are lot of pages, when trying to retrieve more pages, it fails.

      Steps to reproduce:
      1.- Create lot of pages on a site. This script can be used for that task, but userId and groupId should be adapted:

      userId = 20199L;
      groupId = 20182L;
      
      
      privateLayout = false;
      parentLayoutId = 0L;
      type = "portlet";
      hidden = true;
      
      try {
      	for (i=0; i< 1000; ++i) {
      		name="pagina" + (i + 1);
      		title = name;
      		description = name;
      		friendlyURL = "/" + name;
      
      		com.liferay.portal.service.LayoutLocalServiceUtil.addLayout(userId,
      				groupId, privateLayout, parentLayoutId,
      				name, title, description, type, hidden,
      				friendlyURL, new com.liferay.portal.service.ServiceContext());
      	}
      }
      catch (Exception e){
      	out.println("error");
      	e.printStackTrace(out);
      }
      

      2.- Create a new structure and template containing a field of type link to page.

      3.- As site administrator (not portal administrator), go to control panel and create a new web content using that structure.
      4.- try to select a page, and then click the load more results link.

      expected behavior: more pages are retrieved
      current behavior: 404 error

      *If the user is portal administrator there is no error.

      This issue is not reproducible neither on master, nor on 7.0

        Attachments

        1. Fixed.PNG
          Fixed.PNG
          36 kB
        2. Reproduced.PNG
          Reproduced.PNG
          38 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 11 weeks ago

                  Packages

                  Version Package
                  6.2.X EE