<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issue with update-ratings-entry?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114436394" />
  <subtitle>Issue with update-ratings-entry?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114436394</id>
  <updated>2026-04-05T15:17:20Z</updated>
  <dc:date>2026-04-05T15:17:20Z</dc:date>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114609245" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114609245</id>
    <updated>2019-08-05T11:28:13Z</updated>
    <published>2019-08-05T11:28:13Z</published>
    <summary type="html">Thank you, It works!</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-08-05T11:28:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114482277" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114482277</id>
    <updated>2019-07-29T14:35:03Z</updated>
    <published>2019-07-29T14:35:03Z</published>
    <summary type="html">Here it is: &lt;a href="https://github.com/brianchandotcom/liferay-portal/pull/76266"&gt;https://github.com/brianchandotcom/liferay-portal/pull/76266&lt;/a&gt; &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2019-07-29T14:35:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114479987" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114479987</id>
    <updated>2019-07-29T14:33:00Z</updated>
    <published>2019-07-29T14:33:00Z</published>
    <summary type="html">Beat me to it -- but I would not have had the recommendation for the own interactor, so thanks for sharing Javier. When you get a minute, can you reply with a link to the PR -- just in case anyone comes along and wants to see the changes you are proposing?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-29T14:33:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114477310" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114477310</id>
    <updated>2019-07-29T10:00:42Z</updated>
    <published>2019-07-29T10:00:42Z</published>
    <summary type="html">You are right, the permission check is wrong, sent a PR fixing it. Meanwhile I recommend you to use your own interactor with your service (or the already existing update rating one)</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2019-07-29T10:00:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114452679" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114452679</id>
    <updated>2019-07-26T06:42:24Z</updated>
    <published>2019-07-26T06:42:24Z</published>
    <summary type="html">I use the jsonws api. On /screens.screensratingsentry/get-ratings-entries form I fill the following parameters &lt;br /&gt;p_auth String - this is fix, authenticated user&amp;#39;s token&lt;br /&gt;assetEnryId  long - 110120, valid article&amp;#39;s entryId, I got it from the webContent &lt;br /&gt;ratingsLength int - 1&lt;br /&gt;The result of this call I get the result JSON that I attached above. From the result JSON I copy the params into the /screens.screensratingsentry/update-ratings-entry form: &lt;br /&gt;p_auth  String  - this is fix, authenticated user&amp;#39;s token same as what is in the get-ratings-entries&lt;br /&gt;classPK long - from get-ratings-entries result classPK value, as above: 110114&lt;br /&gt;className java.lang.String  - from get-ratings-entries result className value, as above: com.liferay.journal.model.JournalArticle &lt;br /&gt;&lt;span style="font-size: 18px;"&gt;Result double - the user&amp;#39;s rating, for example: 0.2&lt;/span&gt;&lt;br /&gt;ratingsLength int - 1&lt;br /&gt;The result is I mentioned above. </summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-07-26T06:42:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114445512" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114445512</id>
    <updated>2019-07-25T18:26:27Z</updated>
    <published>2019-07-25T18:26:27Z</published>
    <summary type="html">Hey Laszlo,Can you show us what you are passing as the as he payload when you call the update-ratings-entry?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-25T18:26:27Z</dc:date>
  </entry>
  <entry>
    <title>Issue with update-ratings-entry?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114436393" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114436393</id>
    <updated>2019-07-25T14:12:00Z</updated>
    <published>2019-07-25T14:12:00Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi!&lt;br&gt;I use RatingScreenlet to rate the article, by article's entryId. I can get ratings data from server by using get-rating-entries service. The result is:&lt;br&gt;&lt;pre&gt;&lt;code&gt;{ "average": 0.46666666666666673, 
&amp;amp;nbsp; "classPK": "110114", 
  "ratings": [ 3 ], 
&amp;amp;nbsp; "className": "com.liferay.journal.model.JournalArticle", 
&amp;amp;nbsp; "userScore": 0.2, 
  "totalCount": 3, 
&amp;amp;nbsp; "totalScore": 1.4000000000000001 } &lt;/code&gt;&lt;/pre&gt;But, when I modify the rating for the article with update-ratings-entry I must use classPK and className not the entryId only. I give to the update the data that the get-entries given and it fails&amp;nbsp;with the following error:&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;User 148509 must have UPDATE permission for 110114&lt;/code&gt;&lt;/pre&gt;We don't want to add any user the UPDATE permission to a simple user.I think the className and/or classPK is wrong in the server response.&lt;br&gt;What should I give to those parameters?&lt;br&gt;Thanks!&lt;br&gt;&amp;nbsp;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-07-25T14:12:00Z</dc:date>
  </entry>
</feed>
