<?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 Post Webscript Error in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/post-webscript-error/m-p/67388#M22511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i wrote a simple post java backed webscript&lt;/P&gt;&lt;P&gt;String user = "admin";&lt;BR /&gt;user = req.getParameter("user");&lt;/P&gt;&lt;P&gt;model.put("user", user)&lt;BR /&gt;return model;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but every time I try it with : curl -X POST "http://localhost:8080/alfresco/s/test/hello.json?user=joey&amp;amp;guest=true"&lt;BR /&gt;I get this message error :&lt;/P&gt;&lt;P&gt;FreeMarker template error:&lt;BR /&gt;The following has evaluated to null or missing:&lt;BR /&gt;==&amp;gt; node [in template "test.post.json.ftl" at line 3, column 22]&lt;/P&gt;&lt;P&gt;Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use &amp;lt;#if myOptionalVar??&amp;gt;when-present&amp;lt;#else&amp;gt;when-missing&amp;lt;/#if&amp;gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??&lt;/P&gt;&lt;P&gt;The failing instruction (FTL stack trace):&lt;BR /&gt;----------&lt;BR /&gt;==&amp;gt; ${node} [in template "test.post.json.ftl" at line 3, column 20]&lt;BR /&gt;----------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my&amp;nbsp;&lt;SPAN&gt;test.post.json.ftl file&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"test" : &lt;BR /&gt; {&lt;BR /&gt; "user" : "${user}"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2019 13:53:39 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-04-01T13:53:39Z</dc:date>
    <item>
      <title>Post Webscript Error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-webscript-error/m-p/67388#M22511</link>
      <description>i wrote a simple post java backed webscriptString user = "admin";user = req.getParameter("user");model.put("user", user)return model;but every time I try it with : curl -X POST "http://localhost:8080/alfresco/s/test/hello.json?user=joey&amp;amp;guest=true"I get this message error :FreeMarker template er</description>
      <pubDate>Mon, 01 Apr 2019 13:53:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-webscript-error/m-p/67388#M22511</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-01T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Post Webscript Error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-webscript-error/m-p/67389#M22512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a deployment problem beacause the template that your webscript is parsing have this text &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;${node}&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;in the line 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check in the&amp;nbsp;&lt;A href="http://213.32.19.60:8080/alfresco/s/index" style="color: #333333; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;Alfresco WebScripts Home&lt;/A&gt;&amp;nbsp;(&lt;A href="http://213.32.19.60:8080/alfresco/s/index/uri/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/index/uri/&lt;/A&gt;) the info of your custom service (&lt;A href="http://213.32.19.60:8080/alfresco/s/index/uri/" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/index/uri/&lt;/A&gt;test/hello).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 16:52:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-webscript-error/m-p/67389#M22512</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-04-01T16:52:15Z</dc:date>
    </item>
  </channel>
</rss>

