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

Knowledge Base Display Portlet - Can't rate article anything other than 1 star when portlet is configured to use stars

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.10 EE GA1, 6.2.X EE
    • Fix Version/s: 6.2.X EE
    • Component/s: Knowledge Base widget
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Go to Admin > Content > Knowledge Base.
      2. Add a KB Article.
      3. Add the KB Display portlet to a page.
      4. Assert article displays with Thumbs up/Down ratings.
      5. Go to Configuration, Display Settings.
      6. Set the Radio Dial to 'Use Star Ratings'.
      7. View the article.
      8. Attempt to rate the article.

      Expected Result:
      Can use the stars to rate the article.

      Actual Result:
      I can sometimes give the article a 1 star rating, the 2-5 star rating fields do not work. I get a console error when attempting to rate the stars.

      The following error is generated in console:

      23:02:55,202 ERROR [http-bio-9080-exec-10][status_jsp:?] null
      23:02:57,840 ERROR [http-bio-9080-exec-8][JSONAction:95] com.liferay.portlet.ratings.EntryScoreException
      com.liferay.portlet.ratings.EntryScoreException
              at com.liferay.portlet.ratings.service.impl.RatingsEntryLocalServiceImpl.validate(RatingsEntryLocalServiceImpl.java:280)
              at com.liferay.portlet.ratings.service.impl.RatingsEntryLocalServiceImpl.updateEntry(RatingsEntryLocalServiceImpl.java:160)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.sun.proxy.$Proxy167.updateEntry(Unknown Source)
              at com.liferay.portlet.ratings.service.impl.RatingsEntryServiceImpl.updateEntry(RatingsEntryServiceImpl.java:40)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ....
      

      https://gist.github.com/simonkpark/51aad523405caaeb1f6c

        Attachments

          Activity

            People

            Assignee:
            simon.park Simon Park (Inactive)
            Reporter:
            simon.park Simon Park (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 43 weeks ago

                Packages

                Version Package
                6.2.X EE