productdetail.ftl returns a Freemarker error for digital download products when 
no contentName exists
-----------------------------------------------------------------------------------------------------

                 Key: OFBIZ-2865
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2865
             Project: OFBiz
          Issue Type: Bug
          Components: specialpurpose/ecommerce
    Affects Versions: Release Branch 4.0, Release Branch 9.04, SVN trunk
         Environment: N/A
            Reporter: Ruth Hoffman
            Priority: Minor


productdetail.ftl returns a Freemarker error to the product detail web page as 
shown below for digital download products when no contentName exists. 

Download Files for this Product:
Expression downloadProductContentAndInfo.contentName is undefined on line 524, 
column 34 in component://order/webapp/ordermgr/entry/catalog/productdetail.ftl. 
The problematic instruction: ---------- ==> 
${downloadProductContentAndInfo.contentName} [on line 524, column 32 in 
component://order/webapp/ordermgr/entry/catalog/productdetail.ftl] ---------- 
Java backtrace for programmers: ---------- 
freemarker.core.InvalidReferenceException: Expression 
downloadProductContentAndInfo.contentName is undefined on line 524, column 34 
in component://order/webapp/ordermgr/entry/catalog/productdetail.ftl. at 
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at 
freemarker.core.Expression.getStringValue(Expression.java:118) at 
freemarker.core.Expression.getStringValue(Expression.java:93) at 
freemarker.core.DollarVariable.accept(DollarVariable.java:76) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at 
freemarker.core.Environment.visit(Environment.java:351) at 
freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at 
freemarker.core.Environment.visit(Environment.java:196) at 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to