<?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: How to use input when path contains space at the end in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321984#M8985</link>
    <description>&lt;P&gt;Ok, but how do I create a regular Nuxeo component, can you give me an example or point me to the doc.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dom&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2011 17:22:37 GMT</pubDate>
    <dc:creator>Dominic_Bérubé</dc:creator>
    <dc:date>2011-11-29T17:22:37Z</dc:date>
    <item>
      <title>How to use input when path contains space at the end</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321982#M8983</link>
      <description>&lt;P&gt;I'm trying to use call from the Automation service, but I have some problem when the Path of my Document finish with space e.g.:&lt;/P&gt;
&lt;P&gt;'/default-domain/workspaces/MyWorkspace/MyFolder/MyDocument '&lt;/P&gt;
&lt;P&gt;when I call the service, I use :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{"input":"docs:/default-domain/workspaces/MyWorkspace/MyFolder/MyDocument , /default-domain/workspaces/MyWorkspace/MyFolder/AnotherDocument", "params":{}, "context":{}}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried to put single quotes (') and double quote ("), but still the same error&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 15:01:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321982#M8983</guid>
      <dc:creator>Dominic_Bérubé</dc:creator>
      <dc:date>2011-11-29T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use input when path contains space at the end</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321983#M8984</link>
      <description>&lt;P&gt;You cannot.&lt;/P&gt;
&lt;P&gt;The default "docs" resolver (on the server side) is trimming the doc paths in the list.&lt;/P&gt;
&lt;P&gt;The only way to do this is to override the default resolver for "docs" which is:&lt;/P&gt;
&lt;P&gt;org.nuxeo.ecm.automation.server.jaxrs.io.resolvers.DocumentsInputResolver&lt;/P&gt;
&lt;P&gt;You can do this by creating a regular Nuxeo component and call the following code in the activate method:&lt;/P&gt;
&lt;P&gt;JsonRequestReader.addInputResolver(new MyDocumentsInputResolver());&lt;/P&gt;
&lt;P&gt;where MyDocumentsInputResolver is your custom resolver for the "docs" input. (which should implement the logic to accept trailing spaces in the path entries)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 16:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321983#M8984</guid>
      <dc:creator>bstefanescu_</dc:creator>
      <dc:date>2011-11-29T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use input when path contains space at the end</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321984#M8985</link>
      <description>&lt;P&gt;Ok, but how do I create a regular Nuxeo component, can you give me an example or point me to the doc.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dom&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 17:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321984#M8985</guid>
      <dc:creator>Dominic_Bérubé</dc:creator>
      <dc:date>2011-11-29T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use input when path contains space at the end</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321985#M8986</link>
      <description>&lt;P&gt;As far as components are concerned you can learn more here:
&lt;A href="http://doc.nuxeo.com/x/0gBu" target="test_blank"&gt;http://doc.nuxeo.com/x/0gBu&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;here:
&lt;A href="http://doc.nuxeo.com/x/dABu" target="test_blank"&gt;http://doc.nuxeo.com/x/dABu&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and here:
&lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/listComponents" target="test_blank"&gt;http://explorer.nuxeo.org/nuxeo/site/distribution/current/listComponents&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please note however that what you asked here is a separate question. In such situations we recommend creating a new question instead of attaching it to another one. This will help other community users navigate through this system and find the answers they are looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 18:12:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-input-when-path-contains-space-at-the-end/m-p/321985#M8986</guid>
      <dc:creator>Wojciech_Sulejm</dc:creator>
      <dc:date>2011-11-29T18:12:04Z</dc:date>
    </item>
  </channel>
</rss>

