AnsweredAssumed Answered

Freemarker Access Is Denied Exception

Question asked by lista on May 24, 2013
Latest reply on May 25, 2013 by zladuric
I'm talking about a Java backed web script that finds a node, and using Freemarker as a template outputs its properties in a JSON format. Now, even though I have permissions on a node (I've added them through Explorer, I can view it, edit it, you name it - so there's no room for error here), I still get the Access is Denied exception.

Here's the code responsible.


<#list currNode.properties?keys as p>
<#assign propNode=currNode>

<#if currNode.properties[p]?exists && p?index_of("{http://www.alfresco.org/model/content/1.0}content") == 0 >      
          ,"cm:content":"not_used"        
<#elseif currNode.properties[p]?exists && p?index_of("{http://www.alfresco.org/model/content/1.0}") == 0 >      
   ,"${msg(p?replace("{http://www.alfresco.org/model/content/1.0}", "cm:"))}"        
   <#include "/com/itsistemi/more/scripts/general/convertPropTypesJSON.ftl">       
</#if>    
</#list>


Included code simply find out if a property is boolean, string, etc, so no funny business there.
Has anyone encountered something like this, suggestions, help?

Outcomes