<?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 Re: node metadata is reverting on restart, in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284445#M237575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I have corrected my post.. they are actually all cmc.. the problem persists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 11:19:31 GMT</pubDate>
    <dc:creator>supratim</dc:creator>
    <dc:date>2013-05-29T11:19:31Z</dc:date>
    <item>
      <title>node metadata is reverting on restart,</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284443#M237573</link>
      <description>Hi all,I am using following webscript to make change to metadata of a node..using&amp;lt;javascript&amp;gt;notenode.properties['cmc:fileNoteDesc']=textx;&amp;nbsp; &amp;lt;/javascript&amp;gt;here is the full code…&amp;lt;javascript&amp;gt;function main() {&amp;nbsp; &amp;nbsp; var noteid=args.nid;&amp;nbsp; var textx=args.ncont;&amp;nbsp; var notenode=getFileNoteById</description>
      <pubDate>Wed, 29 May 2013 06:53:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284443#M237573</guid>
      <dc:creator>supratim</dc:creator>
      <dc:date>2013-05-29T06:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: node metadata is reverting on restart,</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284444#M237574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this property ['emdc:fileNoteDesc'] included in your custom content model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I can see you are using different prefixes in properties like "cmc" and "emdc".&amp;nbsp; Do you have two custom content model? or you are trying to add this property on the fly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 07:04:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284444#M237574</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-05-29T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: node metadata is reverting on restart,</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284445#M237575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I have corrected my post.. they are actually all cmc.. the problem persists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 11:19:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284445#M237575</guid>
      <dc:creator>supratim</dc:creator>
      <dc:date>2013-05-29T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: node metadata is reverting on restart,</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284446#M237576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And I am assuming you have put it properly under model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any chance that this script called again out of your knowledge?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because if you are saving node properties there is no way it could be changed again by itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 11:40:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284446#M237576</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-05-29T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: node metadata is reverting on restart,</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284447#M237577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am calling this script from curl from outside only once…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This property actually holds an html string which can be pretty big.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this have anything to do with transaction? My webscript uses transaction like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;lt;shortname&amp;gt;fixnote&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Reset The Repository For Development Purpose&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;/content/fixnote&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;format default="html"&amp;gt;extension&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Curl is fired like this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;echo "Processing" $f "file.."; &lt;BR /&gt;ncontx=$(rhino ./encoder.js $f);&lt;BR /&gt;echo "ncont="$ncontx&amp;gt;ncont&lt;BR /&gt;#echo "ncont=aGVsbG8="&amp;gt;ncont&lt;BR /&gt;nidx="${f%.html}"&lt;BR /&gt;curl -v -X POST -d nid=$nidx -d @ncont "&lt;A href="http://admin:admin@192.168.0.22:82/alfresco/service/content/fixnote" rel="nofollow noopener noreferrer"&gt;http://admin:admin@192.168.0.22:82/alfresco/service/content/fixnote&lt;/A&gt;";&lt;BR /&gt;echo "Processed "$nidx;&lt;BR /&gt;echo "***************************";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here nid=$nidx is actually passing a node id to the script and @ncont reading the big html string from the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Funny thing is I can see the node changed property in alfresco . Then I restart alfresco to find it is back to the previous string. There is no other function or webscript is being invoked anywhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 12:27:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-metadata-is-reverting-on-restart/m-p/284447#M237577</guid>
      <dc:creator>supratim</dc:creator>
      <dc:date>2013-05-29T12:27:36Z</dc:date>
    </item>
  </channel>
</rss>

