rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on February 13, 2008, 02:30:45 PM

Title: Testing build #179
Post by: rejetto on February 13, 2008, 02:30:45 PM
download @ www.dovedove.it/hfs/hfs179.exe

what's new
+ safer template macros execution
* {{delete}} moves to recycle bin
- diff templates broken in build #178
- wrong template parsing for dinamically generated macro quotings www.rejetto.com/forum/?topic=5641
- removed <?tpl syntax introduced in build #176 :-(

If you use RAWR template, you'll have to update the template (http://www.rawr-designs.com/?page=template) also.
Title: Re: Testing build #179
Post by: MarkV on February 13, 2008, 02:58:24 PM
Update problem #178->#179

Quote from: hfs.update.bat
START "" /WAIT "C:\Program Files\HFS\hfs.exe" -q
ping 127.0.0.1 -n 3 -w 1000> nul
MOVE "C:\Program Files\HFS\hfs.exe" "C:\Program Files\HFS\hfs.old.exe"
DEL "C:\Program Files\HFS\hfs.exe"
MOVE "" "C:\Program Files\HFS\hfs.exe"
START "" "C:\Program Files\HFS\hfs.exe"
DEL %0

First and second line: OK.
Third line: Before moving hfs.exe to hfs.old.exe, you'd have to DELete an existing hfs.old.exe first.
Fourth line: You just moved hfs.exe, it doesn't exist anymore, no need to DELete it...
Fifth line: There is a filename missing - C:\Program Files\HFS\hfs.exe.new
The rest is OK.

Quote from: corrected hfs.update.bat
START "" /WAIT "C:\Programme\HFS\hfs.exe" -q
ping 127.0.0.1 -n 3 -w 1000> nul
DEL "C:\Programme\HFS\hfs.old.exe"
MOVE "C:\Programme\HFS\hfs.exe" "C:\Programme\HFS\hfs.old.exe"
MOVE "C:\Programme\HFS\hfs.exe.new" "C:\Programme\HFS\hfs.exe"
START "" "C:\Programme\HFS\hfs.exe"
DEL %0
Title: Re: Testing build #179
Post by: bacter on February 13, 2008, 03:11:47 PM
Rejetto,

could you please start to update the wiki with the new macros, features and sintax and changes?

Mi template ceased to work updating form 178 to 179 and is no longer usable - no language file loading, some macros not working .. had to go back to 178.

Thank you
Title: Re: Testing build #179
Post by: rejetto on February 13, 2008, 03:16:07 PM
yes i will soon
Title: Re: Testing build #179
Post by: Guest on February 13, 2008, 03:17:03 PM
Back to 177, yet again. Diff template still not working here.
Title: Re: Testing build #179
Post by: rejetto on February 13, 2008, 03:18:38 PM
tell me how to reproduce the diff tpl problem, because it works in my tests here.
it can't be fixed while i don't reproduce it.
Title: Re: Testing build #179
Post by: rejetto on February 13, 2008, 03:46:48 PM
Fourth line: You just moved hfs.exe, it doesn't exist anymore, no need to DELete it...

that's because the first move may fail (the dest file may be locked).
in such case, the second move would fail consequently.
the extra DEL makes it safer.

i hope fixed other bugs, thank you markv
Title: Re: Testing build #179
Post by: Guest on February 13, 2008, 04:32:21 PM
[about] called by {{$about}} in diff template doesn't work in 178 or 179 here.
I also have some that are entered directly as html that no longer work.
No clue otherwise, except that 177 does work.
Title: Re: Testing build #179
Post by: rejetto on February 13, 2008, 05:17:36 PM
Ok, i found the bug, and fixed it for the next beta. Thank you for reporting.

Anyway, IF you are putting your macros in the diff template dialog, just know that it is going to never work, from now on.
It's a security measure: nothing in the virtual file system will be allowed to contain macros.
The risk is that .vfs files (those where your virtual file system is saved) could become just like MS Word .doc, and carry malicious instructions.
What you can do is to put your macros in external files.
For real folders, you can put your file just inside the disk folder, and name it "hfs.diff.tpl".
For virtual folders, you can put your file anywhere, and enter the full path (a single line) to the file in the diff tpl dialog.
Title: Re: Testing build #179
Post by: michael on February 14, 2008, 02:11:07 PM
Quote
Access violation at address 00404594 in module 'hfs.exe'. Read of address FFFFFFDD
HFS 2.3 beta (179)
----------------------------------------------------------------
System   : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 2"
Processor: AMD, AMD Athlon(tm) XP 2000+, 1666 MHz MMX
Display  : 1152x864 pixels, 16 bpp
----------------------------------------------------------------
----------------------------------------------------------------
Product Versions

hfs.exe: Build: 0 2008-02-13 23:34:06
:(
Title: Re: Testing build #179
Post by: rejetto on February 14, 2008, 02:16:57 PM
Please michael, read my reply to your last post
http://www.rejetto.com/forum/index.php?topic=5627.msg1033139#msg1033139
Title: Re: Testing build #179
Post by: TSG on February 14, 2008, 02:35:55 PM
There is a bug with special strings and refreshing in other page sections, for example in [progress]. Even with {{$special|begin}} placed in the sections. The strings flick between the variable and the string on each refresh, mainly in sub pages tho.
Title: Re: Testing build #179
Post by: rejetto on February 14, 2008, 02:41:09 PM
Hi guest, macros in diff template will work again in next beta.
Details about this at www.rejetto.com/forum/index.php?topic=5631.msg1033332#msg1033332
Title: Re: Testing build #179
Post by: rejetto on February 14, 2008, 04:11:51 PM
There is a bug with special strings and refreshing in other page sections, for example in [progress]. Even with {{$special|begin}} placed in the sections. The strings flick between the variable and the string on each refresh, mainly in sub pages tho.

Can you give me a short template with just [progress] and what it is needed to reproduce the bug ?
Title: Re: Testing build #179
Post by: bacter on February 14, 2008, 11:38:55 PM
All the problems with this build and my template seams to come from 'load'.  Nothing is loaded , #178 worked ok. Is this a bug or what did you change with ´load' and what must I change to get it working?
Title: Re: Testing build #179
Post by: Foggy on February 15, 2008, 05:14:21 AM
the contents of the file being loaded is now quoted to prevent any possible malicious macro's, you will need to dequote load.
Title: Re: Testing build #179
Post by: Tuskenraider on February 19, 2008, 06:17:25 AM
Access violation at address 0048E78D in module 'hfs.exe'. Read of address FFFFFFFF
HFS 2.3 beta (179)
----------------------------------------------------------------
System   : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 2"
Processor: Intel,               Intel(R) Pentium(R) 4 CPU 2.40GHz, 2400 MHz MMX
Display  : 1024x768 pixels, 24 bpp
----------------------------------------------------------------
----------------------------------------------------------------
Product Versions
hfs.exe: Build: 0 2/13/2008 10:40:12 AM
hfs.old.exe: Build: 0 2/7/2008 1:04:48 PM
i got that a little bit ago....   just popped up..no one was on the server.. nothing was going on... poof there it was... just thought idlet ya know..
tuskenraider