Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C85D7200B84 for ; Tue, 20 Sep 2016 08:49:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C6F45160AC9; Tue, 20 Sep 2016 06:49:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0D45B160AA9 for ; Tue, 20 Sep 2016 08:49:24 +0200 (CEST) Received: (qmail 11294 invoked by uid 500); 20 Sep 2016 06:49:24 -0000 Mailing-List: contact notifications-help@freemarker.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@freemarker.incubator.apache.org Delivered-To: mailing list notifications@freemarker.incubator.apache.org Received: (qmail 11285 invoked by uid 99); 20 Sep 2016 06:49:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2016 06:49:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 99B7DC0282 for ; Tue, 20 Sep 2016 06:49:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.645 X-Spam-Level: X-Spam-Status: No, score=-4.645 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, WEIRD_PORT=0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gEOP_YaLu0fe for ; Tue, 20 Sep 2016 06:49:23 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 759805FC0D for ; Tue, 20 Sep 2016 06:49:22 +0000 (UTC) Received: (qmail 10795 invoked by uid 99); 20 Sep 2016 06:49:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2016 06:49:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E4F102C014D for ; Tue, 20 Sep 2016 06:49:21 +0000 (UTC) Date: Tue, 20 Sep 2016 06:49:21 +0000 (UTC) From: "Daniel Dekany (JIRA)" To: notifications@freemarker.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FREEMARKER-34) ignore_missing option of the <#include does directive not work as expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Sep 2016 06:49:25 -0000 [ https://issues.apache.org/jira/browse/FREEMARKER-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15505790#comment-15505790 ] Daniel Dekany edited comment on FREEMARKER-34 at 9/20/16 6:48 AM: ------------------------------------------------------------------ What's the stack trace? A blind guess... a mistake that used to occur is that a custom {{TemplateLoader}} throws exception when it doesn't find a template, instead of returning {{null}} (as the {{TemplateLoader}} API requires). was (Author: ddekany): What's the stack trace? A bling guess... a mistake that used to occur is that a custom {{TemplateLoader}} throws exception when it doesn't find a template, instead of returning {{null}} (as the {{TemplateLoader}} API requires). > ignore_missing option of the <#include does directive not work as expected > -------------------------------------------------------------------------- > > Key: FREEMARKER-34 > URL: https://issues.apache.org/jira/browse/FREEMARKER-34 > Project: Apache Freemarker > Issue Type: Bug > Components: engine > Affects Versions: 2.3.24-incubating > Environment: Windows and *nix > Reporter: Jacques Le Roux > > I found this issue while working on OFBIZ-8250. > It can be easily reproduced on our trunk demo at > https://ofbiz-vm.apache.org:8443/catalog/control/main?USERNAME=admin&PASSWORD=ofbiz&JavaScriptEnabled=Y > By default the footer shows information about the revision and others. They are beforehand generated in a file which is then used by a Freemarker template for rendering. > This template depends on themes, by default it's at > http://svn.apache.org/viewvc/ofbiz/trunk/themes/tomahawk/template/Footer.ftl?view=markup (see lines 26-27) > If we remove the generated file, which is at /home/ofbizDemo/trunk/runtime/SvnInfo.ftl on the OFBiz demo server. Then the error appears. > Let me know when you want to test this (ie temporary rename the file). Even if it's benign, better to not annoy OFBiz users with this issue on screen. > Thanks! -- This message was sent by Atlassian JIRA (v6.3.4#6332)