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

Cannot access Blogs entry via Blogs Aggregator widget on a content page


    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.2.10 DXP FP1, DXP SP1, 7.2.X, Master
    • Fix Version/s: None
    • Component/s: Blogs
    • Labels:
    • Fix Priority:


      Steps to reproduce:

      1. Navigate to Content & Data > Blogs, and create a blog entry under Blogs Admin
      2. Navigate to Site Builder > Pages, and create a new Content Page
      3. On the new Content Page, add the Blogs widget and Blogs Aggregator widget
      4. Navigate to the new content page and click on a blog entry in blogs aggregator 

      Expected result:
      The user can view the blog entry in the blogs widget on the content page

      Actual result:
      An error is displayed - Error: No suitable application found to display the blogs entry.

      Workaround: Blog entry will display if a blog widget exists on a widget page (redirects from blogs aggregator widget on a content page to the blogs widget on a widget page). 

      • Navigate to Site Builder > Pages, and create a new Widget Page
      • Add the Blogs widget to the Widget Page
      • Navigate to Content Page and click on a blog entry in blogs aggregator 
      • This will redirect you to the Widget Page Blogs Widget

      Note: The same error is achieved if you try to access a blog entry through Blogs Aggregator on a Widget page without having a Blogs Widget available. 

      Related Issues:  https://issues.liferay.com/browse/LPS-102798

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7.  GIT ID b4a0ad1065dc6226570fa103b0b67d6ded202de5

      Second way to reproduce this issue

      • Create a User Group named "Blogger User Group"
      • Create a Public widget page for the user group named "My Blog"
      • Add the Blogs portlet to the "My Blog" page
      • Create a role named "Blogger Role"
      • Define the permissions so that the Blogger role can do anything with a blog: view/create/update/delete, etc.
      • Assign the "Blogger User Group" as a member of "Blogger Role"
      • Create a new user named "Foo Bar"
      • Add the "Foo Bar" user as a member of the "Blogger User Group"
      • Login as the "Foo Bar" user
      • On the user's "My Blog" page, create a new blog entry
      • As an Administrator, create a community called "Intranet"
      • Create a private page named "Blogs"
      • Add a "Blogs Aggregator" portlet to the "Blogs" page
      • Create a new user named "Bar Baz"
      • Make the "Bar Baz" user a member of the "Intranet" community
      • Login as the "Bar Baz" user and go to the "Blogs" page of the "Intranet" community
      • Verify that the Blogs Aggregator is showing the blog entry
      • Click on the link to see the full text of the blog entry

      Expected Results

      The blog entry is shown.

      Actual Results

      An error is displayed - Error: No suitable application found to display the blogs entry.


      With the "Second Way" of reproducing this problem, it's actually a permissions type of bug. Specifically, the BlogsEntryPemission.contains(PermissionChecker permissionChecker, BlogsEntry entry, String actionId) method is returning false when it should be returning true (when visiting the "Intranet" site with the Blogs Aggregator portlet on the "Blogs" page). Since the User Groups way of creating pages is a kind of site template, there is a permissioning problem manifesting itself. If the Administrator were to simply create a "Blogs" page for the "Foo Bar" user (without using the UserGroups page feature) then it works fine.


          Issue Links



              support-lep@liferay.com SE Support
              ekaterina.nesterovich Ekaterina Nesterovich (Inactive)
              Participants of an Issue:
              Recent user:
              Neil Griffin
              1 Vote for this issue
              0 Start watching this issue


                Days since last comment:
                2 years, 15 weeks, 1 day ago


                  Version Package