<?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 Can create site from share UI, not from command line. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299244#M252374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using OOTB Alfresco 5 Community edition running on Ubuntu14.04&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps: Create site through the share UI. Copy request as curl from Chromium developer tools. Reconstructed request in python requests library as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;s=requests.post('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;IP&amp;gt;:8080/share/service/modules/create-site',data=site_data,cookies=THE_cookie&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where THE_cookie was obtained via a POST to &lt;/SPAN&gt;&lt;A href="http://:8080/share/page/dologin" rel="nofollow noopener noreferrer"&gt;http://:8080/share/page/dologin&lt;/A&gt;&lt;SPAN&gt;, which gave a 200, and site_data has different names to the site created through the share UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That request gave a 500 error stating that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; u'freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:\n==&amp;gt; success&amp;nbsp; [in template "org/alfresco/modules/create-site.post.json.ftl" at line 2, column 17]\n\nTip: 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)??\n\nThe failing instruction:\n==&amp;gt; ${success?string}&amp;nbsp; [in template "org/alfresco/modules/create-site.post.json.ftl" at line 2, column 15]', …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When in Chromium, there is no response, but a site is created successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also not got the curl request from the command line to work – it needs the CSRF token removed, then gives a 200 and does nothing; no logs. My understanding is that Alfresco always gives a 200 on a successful request regardless of whether it's a GET or POST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has any ideas that would be amazing. There doesn't seem to be anything that we can do to get create-site to work outside of the share UI, but we absolutely need it to do so. I know I've asked this on StackExchange, however there have been no answers and I have spent some considerable time going through the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 10:50:05 GMT</pubDate>
    <dc:creator>jocylincouch</dc:creator>
    <dc:date>2014-09-03T10:50:05Z</dc:date>
    <item>
      <title>Can create site from share UI, not from command line.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299244#M252374</link>
      <description>Using OOTB Alfresco 5 Community edition running on Ubuntu14.04Steps: Create site through the share UI. Copy request as curl from Chromium developer tools. Reconstructed request in python requests library as:s=requests.post('http://&amp;lt;IP&amp;gt;:8080/share/service/modules/create-site',data=site_data,coo</description>
      <pubDate>Wed, 03 Sep 2014 10:50:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299244#M252374</guid>
      <dc:creator>jocylincouch</dc:creator>
      <dc:date>2014-09-03T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can create site from share UI, not from command line.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299245#M252375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunatly creating a site is a two step process and only half the site is created on the back end.&amp;nbsp;&amp;nbsp; There are JIRAs and discussions in these forums about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However the bottom line is that although it is not as straightforward as it should be it is possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 11:04:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299245#M252375</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-09-03T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can create site from share UI, not from command line.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299246#M252376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've just attempted again but editting the share-config-custom.xml to allow requests from outside of a browser with no CSRF token (as per &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/comment/140283#comment-140283" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/comment/140283#comment-140283&lt;/A&gt;&lt;SPAN&gt; – see the comment near the bottom), however the problem still manifests. The only ticket I can find that's relevant is &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-11706?jql=text%20~%20%22create-site%22" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/MNT-11706?jql=text%20~%20%22create-site%22&lt;/A&gt;&lt;SPAN&gt; which currently has no resolution. Can you point out any that do show a resolution/workaround? I just can't believe that this doesn't work OOTB.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:59:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-create-site-from-share-ui-not-from-command-line/m-p/299246#M252376</guid>
      <dc:creator>jocylincouch</dc:creator>
      <dc:date>2014-09-04T13:59:45Z</dc:date>
    </item>
  </channel>
</rss>

