<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Property &amp;quot;cm:title&amp;quot; duplicated on database : NodeService return wrong value in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/property-quot-cm-title-quot-duplicated-on-database-nodeservice/m-p/122102#M33480</link>
    <description>&lt;P&gt;I have problème on some instances of alfresco when we update the title of documents, we always get the first title set when we use :&lt;/P&gt;&lt;PRE&gt;nodeServive.getProperty(node, ContentModel.PROP_TITLE); //return wrong value&lt;/PRE&gt;&lt;P&gt;Exemple :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Update document&lt;/LI&gt;&lt;LI&gt;Set title to value : "First title"&lt;/LI&gt;&lt;LI&gt;Update title to value : "Latest title"&lt;/LI&gt;&lt;LI&gt;Get property title with NodeServive&lt;UL&gt;&lt;LI&gt;Expected value: "Latest title"&lt;/LI&gt;&lt;LI&gt;value returned : "First title"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;But in Share, &lt;A title="getNode" href="https://api-explorer.alfresco.com/api-explorer/#/nodes/getNode" target="_blank" rel="noopener nofollow noreferrer"&gt;ReST API (getNode)&lt;/A&gt; , NodeBrowser and JavaScript &amp;nbsp;we get the expected value (latest value)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;var title = document.properties['cm:title']; //return good value&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When investigating the problem, I found out the only place the first value of the title remain is in database, using this query :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SELECT n.id AS "Node ID",
  n.uuid AS "Document ID (UUID)",
  p1.string_value AS "Document Name",
  p2.string_value AS "Title"
FROM alf_node AS n,
  alf_node_properties AS p,
  alf_node_properties AS p1,
  alf_node_properties AS p2,
  alf_namespace AS ns,
  alf_qname AS q,
  alf_content_data AS d,
  alf_content_url AS u
WHERE n.id=p.node_id
  AND ns.id=q.ns_id
  AND p.qname_id=q.id
  AND p.long_value=d.id
  AND d.content_url_id=u.id
  AND p1.node_id=n.id
  AND p1.qname_id IN (SELECT id FROM alf_qname WHERE local_name='name')
  AND p2.node_id=n.id
  AND p2.qname_id IN (SELECT id FROM alf_qname WHERE local_name='title')
  AND n.uuid=' fa7d43b4-78e5-4f3e';&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;the result we find two titles :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;| Node ID | Document ID (UUID) | Document Name | Title |&lt;BR /&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf |&lt;STRONG&gt; New Title&lt;/STRONG&gt; |&lt;BR /&gt;| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf |&lt;STRONG&gt; Info-119&lt;/STRONG&gt; |&lt;BR /&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;2 rows in set (1 min 45.42 sec)&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;+----------+--------------------------------------+---------------------+-----------+| Node ID | Document ID (UUID) | Document Name | Title |+----------+--------------------------------------+---------------------+-----------+| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf | New Title || 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf | Info-119 |+----------+--------------------------------------+---------------------+-----------+2 rows in set (1 min 45.42 sec)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;In envirement without the problem, it's expeted to have always one value&lt;BR /&gt;&lt;BR /&gt;Even when we update multiple times, the query results always have 2 results, with the first title value never changing;&lt;BR /&gt;&lt;BR /&gt;I can't give instruction how to repreduce the problem but I got it 3 intances of ACS&lt;BR /&gt;&lt;BR /&gt;Is there a configuration to solve this problem or an alternative in Java to get the expected value ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 08:34:30 GMT</pubDate>
    <dc:creator>oounoughi</dc:creator>
    <dc:date>2024-08-07T08:34:30Z</dc:date>
    <item>
      <title>Property "cm:title" duplicated on database : NodeService return wrong value</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-quot-cm-title-quot-duplicated-on-database-nodeservice/m-p/122102#M33480</link>
      <description>&lt;P&gt;I have problème on some instances of alfresco when we update the title of documents, we always get the first title set when we use :&lt;/P&gt;&lt;PRE&gt;nodeServive.getProperty(node, ContentModel.PROP_TITLE); //return wrong value&lt;/PRE&gt;&lt;P&gt;Exemple :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Update document&lt;/LI&gt;&lt;LI&gt;Set title to value : "First title"&lt;/LI&gt;&lt;LI&gt;Update title to value : "Latest title"&lt;/LI&gt;&lt;LI&gt;Get property title with NodeServive&lt;UL&gt;&lt;LI&gt;Expected value: "Latest title"&lt;/LI&gt;&lt;LI&gt;value returned : "First title"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;But in Share, &lt;A title="getNode" href="https://api-explorer.alfresco.com/api-explorer/#/nodes/getNode" target="_blank" rel="noopener nofollow noreferrer"&gt;ReST API (getNode)&lt;/A&gt; , NodeBrowser and JavaScript &amp;nbsp;we get the expected value (latest value)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;var title = document.properties['cm:title']; //return good value&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When investigating the problem, I found out the only place the first value of the title remain is in database, using this query :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SELECT n.id AS "Node ID",
  n.uuid AS "Document ID (UUID)",
  p1.string_value AS "Document Name",
  p2.string_value AS "Title"
FROM alf_node AS n,
  alf_node_properties AS p,
  alf_node_properties AS p1,
  alf_node_properties AS p2,
  alf_namespace AS ns,
  alf_qname AS q,
  alf_content_data AS d,
  alf_content_url AS u
WHERE n.id=p.node_id
  AND ns.id=q.ns_id
  AND p.qname_id=q.id
  AND p.long_value=d.id
  AND d.content_url_id=u.id
  AND p1.node_id=n.id
  AND p1.qname_id IN (SELECT id FROM alf_qname WHERE local_name='name')
  AND p2.node_id=n.id
  AND p2.qname_id IN (SELECT id FROM alf_qname WHERE local_name='title')
  AND n.uuid=' fa7d43b4-78e5-4f3e';&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;the result we find two titles :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;| Node ID | Document ID (UUID) | Document Name | Title |&lt;BR /&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf |&lt;STRONG&gt; New Title&lt;/STRONG&gt; |&lt;BR /&gt;| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf |&lt;STRONG&gt; Info-119&lt;/STRONG&gt; |&lt;BR /&gt;+----------+--------------------------------------+---------------------+-----------+&lt;BR /&gt;2 rows in set (1 min 45.42 sec)&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;+----------+--------------------------------------+---------------------+-----------+| Node ID | Document ID (UUID) | Document Name | Title |+----------+--------------------------------------+---------------------+-----------+| 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf | New Title || 10493706 | fa7d43b4-78e5-4f3e | 07-N.S. 1207002.pdf | Info-119 |+----------+--------------------------------------+---------------------+-----------+2 rows in set (1 min 45.42 sec)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;In envirement without the problem, it's expeted to have always one value&lt;BR /&gt;&lt;BR /&gt;Even when we update multiple times, the query results always have 2 results, with the first title value never changing;&lt;BR /&gt;&lt;BR /&gt;I can't give instruction how to repreduce the problem but I got it 3 intances of ACS&lt;BR /&gt;&lt;BR /&gt;Is there a configuration to solve this problem or an alternative in Java to get the expected value ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 08:34:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-quot-cm-title-quot-duplicated-on-database-nodeservice/m-p/122102#M33480</guid>
      <dc:creator>oounoughi</dc:creator>
      <dc:date>2024-08-07T08:34:30Z</dc:date>
    </item>
  </channel>
</rss>

