<?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 Java Automation Client - Carriage return is interpreted as a new property in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-carriage-return-is-interpreted-as-a-new/m-p/316034#M3035</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm writing a Java migration program from Nuxeo 7.2 to 8.3&lt;/P&gt;
&lt;P&gt;When I try to copy a note with multiple lines I get an error because Nuxeo interprets a carriage return in the note content as a new property.&lt;/P&gt;
&lt;P&gt;Document note = (Document) session2.newRequest("Document.Fetch").set("value", "/default-domain/workspaces/note").setHeader(
Constants.HEADER_NX_SCHEMAS, "*").execute();&lt;/P&gt;
&lt;P&gt;note.set("note:note", "first line \n second line");&lt;/P&gt;
&lt;P&gt;note = (Document) session2.newRequest("Document.Update").setHeader(Constants.HEADER_NX_SCHEMAS, "*").setInput(note).set("properties", note).execute();&lt;/P&gt;
&lt;P&gt;Here is a piece the error I get :&lt;/P&gt;
&lt;P&gt;Exception in thread "main" org.nuxeo.ecm.automation.client.RemoteException: Failed to invoke operation: Document.Update
Caused by: org.nuxeo.ecm.automation.client.RemoteThrowable:&lt;/P&gt;
&lt;P&gt;****** chain ******
Name: Document.Update
Exception: TypeAdaptException
Caught error: java.io.IOException: Invalid property line (cannot find a '=') in: ' second line'
Caused by: java.io.IOException: Invalid property line (cannot find a '=') in: ' second line'&lt;/P&gt;
&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2016 15:59:17 GMT</pubDate>
    <dc:creator>Liam_Lyons</dc:creator>
    <dc:date>2016-11-24T15:59:17Z</dc:date>
    <item>
      <title>Java Automation Client - Carriage return is interpreted as a new property</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-carriage-return-is-interpreted-as-a-new/m-p/316034#M3035</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm writing a Java migration program from Nuxeo 7.2 to 8.3&lt;/P&gt;
&lt;P&gt;When I try to copy a note with multiple lines I get an error because Nuxeo interprets a carriage return in the note content as a new property.&lt;/P&gt;
&lt;P&gt;Document note = (Document) session2.newRequest("Document.Fetch").set("value", "/default-domain/workspaces/note").setHeader(
Constants.HEADER_NX_SCHEMAS, "*").execute();&lt;/P&gt;
&lt;P&gt;note.set("note:note", "first line \n second line");&lt;/P&gt;
&lt;P&gt;note = (Document) session2.newRequest("Document.Update").setHeader(Constants.HEADER_NX_SCHEMAS, "*").setInput(note).set("properties", note).execute();&lt;/P&gt;
&lt;P&gt;Here is a piece the error I get :&lt;/P&gt;
&lt;P&gt;Exception in thread "main" org.nuxeo.ecm.automation.client.RemoteException: Failed to invoke operation: Document.Update
Caused by: org.nuxeo.ecm.automation.client.RemoteThrowable:&lt;/P&gt;
&lt;P&gt;****** chain ******
Name: Document.Update
Exception: TypeAdaptException
Caught error: java.io.IOException: Invalid property line (cannot find a '=') in: ' second line'
Caused by: java.io.IOException: Invalid property line (cannot find a '=') in: ' second line'&lt;/P&gt;
&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:59:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-carriage-return-is-interpreted-as-a-new/m-p/316034#M3035</guid>
      <dc:creator>Liam_Lyons</dc:creator>
      <dc:date>2016-11-24T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java Automation Client - Carriage return is interpreted as a new property</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-carriage-return-is-interpreted-as-a-new/m-p/316035#M3036</link>
      <description>&lt;P&gt;I managed to do it by adding \\ at the end of a line.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:19:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-automation-client-carriage-return-is-interpreted-as-a-new/m-p/316035#M3036</guid>
      <dc:creator>Liam_Lyons</dc:creator>
      <dc:date>2016-11-25T12:19:21Z</dc:date>
    </item>
  </channel>
</rss>

