rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on February 07, 2008, 05:27:35 AM

Title: Testing build #178
Post by: rejetto on February 07, 2008, 05:27:35 AM
download @ www.dovedove.it/hfs/hfs178.exe

what's new
+ new template macro: for each http://www.rejetto.com/forum/index.php?topic=5353.msg1032834#msg1032834
+ URI support in {{load}}
+ support for paths . and .. in {{add folder}}
+ support for multiple substitutions in {{replace}} http://www.rejetto.com/forum/index.php?topic=5353.msg1032842#msg1032842
* DNS updater: lowered frequency of external IP check     
- {{substring}} was returning whole string when first pattern was not found
- possible memory leak in {{set item}}
- possible macro injection in comments 
- {{delete}} required unnecessary extra parameter
- NT4 incompatibility with automatic updates
- automatic backup restoration on VFS corruption was not working
- wrong template parsing of "[unclosed section"
- erroneous loading of diff templates from subfolders of a real folder www.rejetto.com/forum/?topic=5605
- {{from table}} was not synced to variable content www.rejetto.com/forum/?topic=5620
- using special characters in username led to hanging connections http://www.rejetto.com/forum/index.php?topic=5573.msg1033030#msg1033030
Title: Re: Testing build #178
Post by: Foggy on February 07, 2008, 05:34:42 AM
what does for each do?
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 05:39:33 AM
i had no time to document new macros in the last weeks.
i'm going to add at least an post reference to those...
Title: Re: Testing build #178
Post by: Guest on February 07, 2008, 07:34:22 AM
Had to go back to build 177. Diff template no longer works in 178 at all.
Read link in 178 Whats New.
Diff template in sub real folder works perfectly in 177 here?
Am I missing some new setting in 178?
Title: Re: Testing build #178
Post by: SilentPliz on February 07, 2008, 09:26:37 AM
I confirm that there are conflicts with the diff templates.

And the comments as :

<IMG alt="" src="/~img4">
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.
<br>
{{repeat|4|&nbsp;}} A découvrir...

have a display problem.
See attached image.
Title: Re: Testing build #178
Post by: bacter on February 07, 2008, 09:44:34 AM
silentpliz:

I pasted your samplecode in the testsection of my template and it works as it is expected!

Whenever I had the problem to see unexpanded macros while working in a template with the latest builds,  as in your example, this was caused by some minor sintax error like a missing  brace '}' in a macro or '>' in html..

For something like you want, it would probably be better to use css than macros,
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 12:44:32 PM
And the comments as :
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.

I'm sorry guys, but macros won't be available in comments for security reasons.

There was another bug with comments, showing an empty comment box for every file that has no comment. Fixed in next build. I wonder why no one reported it yet.

I'll check the diff tpl thing ASAP.
Title: Re: Testing build #178
Post by: TSG on February 07, 2008, 02:05:47 PM
Yes that is a concern, but Macros are needed in diff tpl, so i would suggest disabling the upload of hfs.diff.tpl for security reasons.
Title: Re: Testing build #178
Post by: SilentPliz on February 07, 2008, 02:40:01 PM
And the comments as :
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.

I'm sorry guys, but macros won't be available in comments for security reasons.

There was another bug with comments, showing an empty comment box for every file that has no comment. Fixed in next build. I wonder why no one reported it yet.

I'll check the diff tpl thing ASAP.


   
For "comments without comment," I noticed, but after finding problems on the diff templates, it seemed to me so little that I forgot.

The macro above was functioned before, that is no longer possible... It's a pity.
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 03:15:05 PM
Yes that is a concern, but Macros are needed in diff tpl, so i would suggest disabling the upload of hfs.diff.tpl for security reasons.

it's already disabled.

The macro above was functioned before, that is no longer possible... It's a pity.

i don't think you'd exchange safety for such feature.
Title: Re: Testing build #178
Post by: SilentPliz on February 07, 2008, 03:17:09 PM
A bug fun with the diff templates:
If I have a diff template translated into french to a folder, it translated into french the default template in release 178, which is in English.

It is a bug almost beneficial. :)
Title: Re: Testing build #178
Post by: SilentPliz on February 07, 2008, 03:25:57 PM
rejetto says
Quote
i don't think you'd exchange safety for such feature.

I have a "chat" who operated macros in the comments
And I fear (unless I am mistaken), it must finish poorly. :'(
Title: Re: Testing build #178
Post by: Guest on February 07, 2008, 03:51:08 PM
Macro in comment:
Does this mean something like
Code: [Select]
{{if| {{?search}} |<div class=item-folder>{{!Location:}} %item-folder%</div> }}%comment% in [file] will no longer work? Or is it hfs.comments.txt in folder? Or
comment for folder in Menu ?
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 03:55:47 PM
no, that's a "comment in macro", not a "macro in comment" ;)
silentpliz is using macro in comment http://www.rejetto.com/forum/index.php?topic=5627.msg1033106#msg1033106
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 03:57:05 PM
A bug fun with the diff templates:
If I have a diff template translated into french to a folder, it translated into french the default template in release 178, which is in English.

I don't understand the bug you are talking about.
But just know that to translate the default template, you can just put [special:strings] in the root diff template, and that's by design, not a bug.
Title: Re: Testing build #178
Post by: michael on February 07, 2008, 04:41:03 PM
sorry, don't know where to post, so I did it here.

Code: [Select]
Access violation at address 00404594 in module 'hfs.exe'. Read of address FFFFFFDD
HFS 2.3 beta (178)
----------------------------------------------------------------
Stack list, generated 2008-02-07 19:35:05
(00003594){hfs.exe     } [00404594]
(000745D8){hfs.exe     } [004755D8]
(000AA18C){hfs.exe     } [004AB18C]
(000AA34F){hfs.exe     } [004AB34F]
(00057CD7){hfs.exe     } [00458CD7]
(00057B43){hfs.exe     } [00458B43]
(0002A3F8){hfs.exe     } [0042B3F8]
(0006943C){hfs.exe     } [0046A43C]
(00091DDE){hfs.exe     } [00492DDE]
(00091E07){hfs.exe     } [00492E07]
(00134371){hfs.exe     } [00535371]
(00139D8A){hfs.exe     } [0053AD8A]
(0013A965){hfs.exe     } [0053B965]
(000AA3A5){hfs.exe     } [004AB3A5]
(000AC830){hfs.exe     } [004AD830]
(000ABC4C){hfs.exe     } [004ACC4C]
(000AC034){hfs.exe     } [004AD034]
(000A5BAC){hfs.exe     } [004A6BAC]
(000A7617){hfs.exe     } [004A8617]
(000A8518){hfs.exe     } [004A9518]
(000A26C0){hfs.exe     } [004A36C0]
(0013755D){hfs.exe     } [0053855D]
(00001D68){hfs.exe     } [00402D68]
(00004379){hfs.exe     } [00405379]
(0013804D){hfs.exe     } [0053904D]
(0013AF1E){hfs.exe     } [0053BF1E]
(0013AF39){hfs.exe     } [0053BF39]
(000A280A){hfs.exe     } [004A380A]
(000A2AF7){hfs.exe     } [004A3AF7]
(000A15E5){hfs.exe     } [004A25E5]
(000A8077){hfs.exe     } [004A9077]
(000A171D){hfs.exe     } [004A271D]
(0006943C){hfs.exe     } [0046A43C]
(00091DDE){hfs.exe     } [00492DDE]
(00091E23){hfs.exe     } [00492E23]
(000920BE){hfs.exe     } [004930BE]
(001585CF){hfs.exe     } [005595CF]
----------------------------------------------------------------
System   : Windows XP Professional, Version: 5.1, Build: A28, "Service Pack 2"
Processor: AMD, AMD Athlon(tm) XP 2000+, 1666 MHz MMX
Display  : 1024x768 pixels, 16 bpp
----------------------------------------------------------------
----------------------------------------------------------------
Product Versions

hfs.exe: Build: 0 2008-02-07 17:02:44
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 11:37:23 PM
Had to go back to build 177. Diff template no longer works in 178 at all.
Diff template in sub real folder works perfectly in 177 here?

sorry, fixed in next build.
in sub real folders worked while you had no diff in the parent folder.
Title: Re: Testing build #178
Post by: rejetto on February 07, 2008, 11:46:47 PM
sorry, don't know where to post, so I did it here.

hi michael, that's the same bug reported at http://www.rejetto.com/forum/index.php?topic=5505.0
i want to fix it, but it won't be easy.
post as much information you can, but on that specific thread.
Title: Re: Testing build #178
Post by: mmf2 on February 10, 2008, 03:36:17 AM
The house which translates into Chinese will appear a code mistake and see a picture(http://)