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

JournalArticleServiceUtil.getArticles returns false article count when logged on with a non-omniadmin user

    Details

      Description

      Description:
      JournalArticleServiceUtil.getArticles returns false article count when logged on with a non-omniadmin user

      Reproduction Steps:
      1. Log on as administrator
      2. Create a new role: "Regularrole1"
      3. Create a new user: "test1" and assign the Regularrole1 to him
      4. Create a new web content article: "testarticle1"
      5. Within the article's permissions, grant View permissions for "Regularrole1"
      6. Add the article to the welcome page (in Asset Publisher)
      7. Add the attached portlet to the welcome page (CARREFOUR16.war)
      8. Log out and log on as test1
      9. Click on the portlet's link (it will run JournalArticleServiceUtil.getArticles to count the articles on the page)

      Expected results:
      The article count should be 1

      Actual Results:
      The article count is 2

      Note: if you remove the View permissions from the Regularrole1, the count will go back to 1
      Note2: this issue is somewhat similar to: https://issues.liferay.com/browse/LPP-23921

      Reproduced with the customer's patches (portal-77)
      Reproduced with the latest patches for 6.2 EE (portal-131)
      Reproduced on 6.2.x (df3cbf11c01da4e9d7664249fd0352b4563eef06)
      Master and 7.0.x OK (Built own CARREFOUR16_1.0.0 porlet for Master)

      This error is caused because CARREFOUR16_1.0.0 portlet can only be used in ee-6.2.x:
      Could not test on Master (40617379c39dbdee62509f6f1af4711dc0b8f34d) because at step 9, I get this error message:

      java.lang.ClassNotFoundException: com.liferay.portal.util.PortalUtil cannot be found by CARREFOUR16_1.0.0
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              rimi.saadou Rimi Saadou (Inactive)
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 19 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE