[ic] Strange behavior with [timed-build auto=1]
Mike Heins
mike at perusion.com
Wed Jul 7 13:08:11 EDT 2004
Quoting Marty Tennison (marty at sediva.com):
> IC=5.0
> perl=5.8 (no threads)
> DB=mysql
>
> I've been working with [timed-build] lately and I *think* I have found a
> strange behavior when auto=1 is set. I've recreated this behavior on
> the demo site also.
>
> I am unable to get the [timed-build auto=1 force=1] tag to create a file
> in the tmp/auto-timed directory.
>
> When I use the [timed-build] tag alone, it successfully creates a file
> in the CATROOT/timed directory. When I supply a file="<filename>"
> parameter, it successfully creates a file. However, when I use the
> auto=1 option, no file is created.
>
> So, to recreate the problem I uploaded a new help.html file to the demo
> site with these contents appended to the file.
>
> [timed-build auto=1 force=1]
> test test test
> [/timed-build]
>
> I loaded help.html in another browser window, then navigated to the
> auto-timed directory. No file was created in auto-timed. Then I
> changed the time-build tag to set a file name.
>
> [timed-build file="tmp/auto-timed/test.txt" force=1]
> test test test
> [/timed-build]
>
>
> I loaded help.html in another browser window, then navigated to the
> auto-timed directory. The file was there.
>
> I'm probably missing something, but I sure don't know what it is. Any
> help is appreciated. Thanks in advance.
It's a bug. Try this patch (may not be exact since your version is
a bit outdated):
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.212
diff -u -r2.212 Interpolate.pm
--- Interpolate.pm 28 Jun 2004 21:37:50 -0000 2.212
+++ Interpolate.pm 7 Jul 2004 17:05:37 -0000
@@ -5355,6 +5355,7 @@
my $secs;
CHECKDIR: {
+ last CHECKDIR if Vend::File::file_name_is_absolute($file);
last CHECKDIR if $file and $file !~ m:/:;
my $dir;
if ($file) {
I have committed this to both stable and devel -- thanks for finding
it!
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison
More information about the interchange-users
mailing list