Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 27009 invoked from network); 10 Jan 2007 09:25:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2007 09:25:51 -0000 Received: (qmail 94140 invoked by uid 500); 10 Jan 2007 09:25:55 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 94074 invoked by uid 500); 10 Jan 2007 09:25:55 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 94054 invoked by uid 99); 10 Jan 2007 09:25:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 01:25:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 01:25:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB1F07142CF for ; Wed, 10 Jan 2007 01:25:27 -0800 (PST) Message-ID: <15093804.1168421127828.JavaMail.jira@brutus> Date: Wed, 10 Jan 2007 01:25:27 -0800 (PST) From: "Carsten Ziegeler (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Closed: (COCOON-1979) [PATCH] Flow 2.1.0 reload-script = true does not reload scripts loaded via cocoon.load In-Reply-To: <15889548.1168338507709.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed COCOON-1979. ------------------------------------ Resolution: Fixed Fix Version/s: 2.2-dev (Current SVN) 2.1.11-dev (Current SVN) Oh, yes - you're right of course. Your patch is applied - please cross check > [PATCH] Flow 2.1.0 reload-script = true does not reload scripts loaded via cocoon.load > -------------------------------------------------------------------------------------- > > Key: COCOON-1979 > URL: https://issues.apache.org/jira/browse/COCOON-1979 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core > Affects Versions: 2.1.10 > Reporter: Rob Berens > Assigned To: Carsten Ziegeler > Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN) > > Attachments: patch-1.txt, patch-2.txt > > > When a script is loaded via cocoon.load the refresh parameter for CompilingInterpreter.ScripSourceEntry.getScript is always set to false. In 2.1.8 this parameter was incorrectly ignored, when checking the compile time against the last modified time in CompilingInterpreter.ScripSourceEntry.getScript. This was corrected in 2.19 or 2.1.10. The side effect however is that scripts loaded via cocoon.load are never checked for modification, as FOM_JavaScriptInterpreter.compileScript(Context, String) always calls the getScript method with refresh = false. > In the supplied patched (patch-1.txt and patch-2.txt) the compileScript method now sets the refresh indicator dependent on the reload-script and check-time parameters. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira