Legacy Knowledge Base
Published Jun. 30, 2025

Upgrading from 6.2 to 7.3 changes the number of likes and dislikes

Written By

Tímea Bihari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Ratings and Comment Ratings are enabled in our portal.
  • When we upgrade the portal from 6.2 to 7.3, some likes turn into dislikes and that creates false information.
  • In the ratingsentry table, the scores of the ratings change from 1 (before upgrade) to 0.2 (after the upgrade).

Environment

  • Liferay Portal 6.2
  • Liferay DXP 7.3

Resolution

The reason why the rating scores go down from 1 to 0.2 during the upgrade is that they are getting normalized with the star ratings (1-5). The default normalization factor is 5, so the rating values will be divided by 5 (1/5 = 0.2).

  • Solution pre-upgrade: Set ratings.upgrade.stars.normalization.factor[default]=1 in portal-upgrade-ext.properties in the upgrade tool, and re-run the 6.2 to 7.3 upgrade.
  • Solution post-upgrade:
    1. Make sure that you take a backup of your database dump before running any script that modifies the entries
    2. Navigate to Control Panel > Server Administration > Script
    3. Paste the attached groovy script there and Execute
    4. When it's finished, navigate to Control Panel > Server Administration >Resources
    5. Clear the database cache

After this, you should see the correct number of likes and dislikes for Assets and Comments.

Did this article resolve your issue ?

Legacy Knowledge Base