<?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: guest access in alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205512#M158642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To reactivate this topic, I'm now trying to let no link to folders be displayed, that the guest user has no access to. Typically, they aren't listed by the script, though no problems evolve. But I'm giving a link for changing to the parent folder of the actual one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As guest approaches a folder that its parent has not him as an invited user, the link (calling the script itself with the new noderef) is invalid and thus leads to a script error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I check for undefined variables in Freemarker?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://fmpp.sourceforge.net/freemarker/versions_2_1.html" rel="nofollow noopener noreferrer"&gt;http://fmpp.sourceforge.net/freemarker/versions_2_1.html&lt;/A&gt;&lt;SPAN&gt; didn't really work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it something like &amp;lt;#if Ordner.parent??==false&amp;gt; (looking very wrong)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2009 10:15:56 GMT</pubDate>
    <dc:creator>_sax</dc:creator>
    <dc:date>2009-08-06T10:15:56Z</dc:date>
    <item>
      <title>guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205509#M158639</link>
      <description>I would share how I allow guest access in Alfresco through webscript. Below there are the operations to execute:- desc.xml files have to get &amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;- All documents must to be in guest home of Alfresco or in a other folder with the same permissions of guest</description>
      <pubDate>Mon, 04 May 2009 08:24:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205509#M158639</guid>
      <dc:creator>flashboss</dc:creator>
      <dc:date>2009-05-04T08:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205510#M158640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot, still this didnt't work with our installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following your instruction set, I received&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"WebScript soandso requires user authentication; however, a guest has attempted access."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only place where this message is to be found is in Alfresco source:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[…]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else if ((required == RequiredAuthentication.user || required == RequiredAuthentication.admin) &amp;amp;&amp;amp; isGuest)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[..,]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is this script insisting on its user authentification process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer: via the xml-file the webscript is registered at startup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes in it weren't of effect, as long as I didn't restart Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only ftl and js-files are being read everytime the webscript is called.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 17:01:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205510#M158640</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2009-06-29T17:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205511#M158641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A last thing to note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If companyhome or another folder variable is told to be undefined, it is because of user rights limitations set in your installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Companyhome and all subsequent folders to your folder thats displayed by your webscript have to have a read permission for the guest user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, they cannot be seen by him (rendering them undefined) and though by the script that acts in his context.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 18:00:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205511#M158641</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2009-06-30T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205512#M158642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To reactivate this topic, I'm now trying to let no link to folders be displayed, that the guest user has no access to. Typically, they aren't listed by the script, though no problems evolve. But I'm giving a link for changing to the parent folder of the actual one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As guest approaches a folder that its parent has not him as an invited user, the link (calling the script itself with the new noderef) is invalid and thus leads to a script error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I check for undefined variables in Freemarker?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://fmpp.sourceforge.net/freemarker/versions_2_1.html" rel="nofollow noopener noreferrer"&gt;http://fmpp.sourceforge.net/freemarker/versions_2_1.html&lt;/A&gt;&lt;SPAN&gt; didn't really work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it something like &amp;lt;#if Ordner.parent??==false&amp;gt; (looking very wrong)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:15:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205512#M158642</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2009-08-06T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205513#M158643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Freemarker, there are two ways to deal with undefined variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - &amp;lt;#if Ordner.parent??&amp;gt; Parent is: ${Ordner.parent} &amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 - Parent is: ${Ordner.parent!"undefined"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:25:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205513#M158643</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-08-06T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: guest access in alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205514#M158644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I understand this right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#if Ordner.parent??&amp;gt;display a link&amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the top folder, this statement is fulfilled, it detects {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/system/1.0}store_root" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}store_root&lt;/A&gt;&lt;SPAN&gt;, when checking for ${Ordner.parent!"undefined"}. Could this be filtered?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 13:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/guest-access-in-alfresco/m-p/205514#M158644</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2009-08-06T13:57:31Z</dc:date>
    </item>
  </channel>
</rss>

