You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2019/04/04 17:17:01 UTC

[jira] [Commented] (OFBIZ-10817) Configure stackTrace displaying on ftl rendering

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

Jacques Le Roux commented on OFBIZ-10817:
-----------------------------------------

Hi Nicolas,

I'm not sure what I miss (did not dig in code), but here is my quick experience.
# Put an error in themes/rainbowstone/template/includes/Footer.ftl:
 {{<#include wwwwwwwwwwwwwwww "ofbizhome://VERSION" ignore_missing=true/>}}
#  Get to https://localhost:8443/webtools/control/FindUtilCache w/ default values
I see an error saying: 
{{Error rendering included template at location [component://rainbowstone/template/includes/Footer.ftl]....}} (2 lines)
But no stack trace, only in log

Then using the properties in widget.properties has no effect. Could I have an example with a stack trace? Thanks!

> Configure stackTrace displaying on ftl rendering
> ------------------------------------------------
>
>                 Key: OFBIZ-10817
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10817
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: Failure.png, FailureSafe.png, OFBIZ-10817.patch, OFBIZ-10817.patch, OFBIZ-10817.patch
>
>
> Currently when freemarker failed to execute a template, you have on end screen rendered all java stack trace generate.
> I propose to improve this to display the stack trace only when the property widget.verbose is true, no regression during development and when you switch to production site, in general your widget.verbose is false so end user haven't stack trace (that totally unused for them).
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)