[ 
https://issues.apache.org/jira/browse/OFBIZ-5802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163378#comment-14163378
 ] 

Pierre Smits commented on OFBIZ-5802:
-------------------------------------

The errors shown are:
{code}
     FreeMarker template error: The following has evaluated to null or missing: 
==> userLogin [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 24, 
column 78] Tip: If the failing expression is known to be legally refer to 
something that's null or missing, either specify a default value like 
myOptionalVar!myDefault, or use <#if 
myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the 
last step of the expression; to cover the whole expression, use parenthessis: 
(myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL 
stack trace): ---------- ==> #if security.hasEntityPermission("PAR... [in 
template "component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at 
line 24, column 9] 
{code}

{code}
(N)     FreeMarker template error: The following has evaluated to null or 
missing: ==> userLogin [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 
127, column 90] Tip: If the failing expression is known to be legally refer to 
something that's null or missing, either specify a default value like 
myOptionalVar!myDefault, or use <#if 
myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the 
last step of the expression; to cover the whole expression, use parenthessis: 
(myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL 
stack trace): ---------- ==> #if security.hasEntityPermission("PAR... [in 
template "component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at 
line 127, column 17] #list contactMeches as contactMechMap [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 39, 
column 11]
{code}
{code}
FreeMarker template error: The following has evaluated to null or missing: ==> 
userLogin [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 88, 
column 28] Tip: If the failing expression is known to be legally refer to 
something that's null or missing, either specify a default value like 
myOptionalVar!myDefault, or use <#if 
myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the 
last step of the expression; to cover the whole expression, use parenthessis: 
(myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL 
stack trace): ---------- ==> #if userLogin.partyId?has_content [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 88, 
column 23] #list contactMeches as contactMechMap [in template 
"component://party/webapp/partymgr/party/profileblocks/Contact.ftl" at line 39, 
column 11]
{code}



> Contact.ftl generates errors when accessed anonymously
> ------------------------------------------------------
>
>                 Key: OFBIZ-5802
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5802
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: party
>    Affects Versions: Release Branch 11.04, Release Branch 12.04, Release 
> Branch 13.07, Trunk
>            Reporter: Pierre Smits
>              Labels: portal, portalPage, portlet, profile
>
> When accessing a screen that delivers the PartyProfile portalpage as an 
> anonymous user, the Contact portlet (which renders contact.ftl) shows a lot 
> of errors.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to