cancel
Showing results for 
Search instead for 
Did you mean: 

Content Automation bug for multi-line properties ?

Julien_
Champ in-the-making
Champ in-the-making

Hello,

It seems there is a bug in the Content Automation Webservice when I try to set multi-line values. The documentation says that we should use a \ at the end of each line. That's what I'm doing but it doesn't work : the new line character is removed. I watched the source code in org.nuxeo.ecm.automation.core.util.Properties and I think I've found the bug line 71 (should be prevLine + "\n" + line)

3 REPLIES 3

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

The '' character at the end of a line is not for inserting new lines, but for wrapping the text in multiple lines, to help you when editing a properties file (same behaviour than when using the java.util.Properties class). Unfortunately there is no way to escape special characters ('\n' for instance) like in the java properties files. But you can try using an alternative formatting supported by automation to control new lines inside your text:

<param type="properties" name="properties">
  <property key="dc:title">My Doc</property>
  <property key="dc:description">My Doc desc (try inserting your text formatting here)</property>
</param>

Hi,

Hi Julien, we are reviewing your problem internally to see if it rings a bell, but at the same time, why don't you try to use the nuxeo-automation-client (https

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.