rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on July 29, 2010, 01:29:36 PM

Title: Testing build #263
Post by: rejetto on July 29, 2010, 01:29:36 PM
Don't worry, I will soon document new features.

download @ www.dovedove.it/hfs/hfs263.exe

what's new
+ new scripting command: notify [link] (http://www.rejetto.com/forum/index.php/topic,8811.msg1050942.html#msg1050942) *
+ {.disconnection reason|if=XXX.}
+ URI support for scripting commands rename,copy,move
+ new scripting symbol: %stream-size% [link] (http://www.rejetto.com/forum/index.php/topic,8609.0.html) *
+ loading of "default.tpl" in the exe's folder
+ browser cache support for embedded icons
+ new connections monitor, now compatible with screen readers
+ {.disconection reason.} now supported in template (it was only in events)
- {.add folder.} was not supporting real folders in specific VFS paths
- win95 support broken in build #262 [link] (http://www.rejetto.com/forum/index.php/topic,8755.0.html)
- big archive folders may cause freezing [link] (http://www.rejetto.com/forum/index.php/topic,8775.0.html)

* Edited by SilentPliz:
bad link for notify: (it was for %stream-size%) and I've added the link for %stream-size%
Title: Re: Testing build #263
Post by: Novox on July 29, 2010, 02:15:22 PM
Thank you very much rejetto!!

You are always the BEST!
Title: Re: Testing build #263
Post by: SilentPliz on July 30, 2010, 07:45:59 AM
I found two annoying omissions in the template:

It's the return of Neesie :D ... accented characters are not/badly converted. utf8 <> ansi

This concerns the rename option and that to create folders.

I'm sure I put too much "{.convert|utf-8|ansi|..." * but it work and that makes me service pending. ;)

Edit: * Corrected  ;)


[ajax.mkdir]
{.if|{.can mkdir.}|{:
   {.set|x|{.convert|utf-8|ansi|%folder%{.postvar|name.}.}.}
   {.if|{.exists|{.^x.}.}|{.!exists.}|{:
      {.if|{.length|{.mkdir|{.^x.}.}.}|ok|{.!failed.}.}
      {.add to log|%user% has created this folder: {.^x.}.}
   :}.}
:}|{.!forbidden.}.}

[ajax.rename]
{.if|{.can rename.}|{:
   {.set|x|{.convert|utf-8|ansi|%folder%{.postvar|from.}.}.}
   {.set|y|{.convert|utf-8|ansi|%folder%{.postvar|to.}.}.}
   {.if not |{.exists|{.^x.}.}|{.!not found.}|
      {.if|{.exists|{.^y.}.}|{.!exists.}|{:
         {.if|{.length|{.rename|{.^x.}|{.^y.}.}.}|ok|{.!failed.}.}
         {.add to log|%user% has renamed an item as {.^y.}.}
      :}.}
   .}
:}|{.!forbidden.}.}

-------------------------------
Edit: (while I think)... why {.^x.} is not converted in this context?:

{.add to log|%user% has renamed an item: {.^x.} --> {.^y.}.}
Title: Re: Testing build #263
Post by: rejetto on July 30, 2010, 02:07:46 PM
> It's the return of Neesie :D ... accented characters are not/badly converted. utf8 <> ansi

right, thank you SP!

> This concerns the rename option and that to create folders.

and delete as well, but being an internal operation, it's not good to be fixed through the template. HFS is supposed to work it out.

> I'm sure I put too much "{.convert|utf-8|ansi|..." but it work and that makes me service pending. ;)

yes indeed :) it's better to "convert" at "set" time.
Title: Re: Testing build #263
Post by: SilentPliz on July 30, 2010, 04:27:32 PM

and delete as well, but being an internal operation, it's not good to be fixed through the template. HFS is supposed to work it out.


Oh. I had not noticed that; "delete" seems work correctly, without using a workaround (convert).
HFS did his job so well! :)
Thank you ;)
Title: Re: Testing build #263
Post by: rejetto on July 30, 2010, 05:24:51 PM
uh, that's strange, i didn't for me.
I had to add this
        asUrl:=optAnsi(tpl.utf8, asUrl);
after this line
        asUrl:=decodeURL(getTill('#', data.postvars.valueFromIndex[i ])); // omit #anchors

it was not working for me without.
Let me know, because i'm going to publish another build soon, since these bugs are quite heavy.
In the next release some very interesting commands will come :)
Title: Re: Testing build #263
Post by: SilentPliz on July 30, 2010, 06:30:07 PM
Bizzarre. I tested with the official beta and the default template:

- to delete folders and files with accented characters ... everything worked normally.

The only scenario where this does not work is when I try to delete folders (with accented characters) created from the web page.
(its normal because with the default template, folders created, contain characters rather esoteric.) :D

If I use the option to create folders once corrected ({.convert ...),  I can delete the folders created without worries.

Maybe you used a different test procedure ... if I can reproduce it, tell me.

In the next release some very interesting commands will come :)

Yum! This hungry! I just can not wait!  :P
Title: Re: Testing build #263
Post by: SilentPliz on July 30, 2010, 11:40:10 PM
Bug with custom IP (custom-ip in the ini file)

To reproduce the bug, add some custom IP & save to file... You will have a result like in screenshots below.
Title: Re: Testing build #263
Post by: PikachuEXE on July 31, 2010, 02:55:01 AM
When I want to browse for file listing in this build, this error pops up:

Unallowed
This resource is not accessible.

I need to switch back to 262 now ~.~
Title: Re: Testing build #263
Post by: SilentPliz on July 31, 2010, 03:50:00 AM
When I want to browse for file listing in this build, this error pops up:

Unallowed
This resource is not accessible.

I need to switch back to 262 now ~.~

I confirm Getlist does not work; more, for me, HFS freeze randomly, even with a very small number of files in a folder (2 or 3).
Occupation of processor resources is at the top.

The log says:

Not served: 403 - Deny
Disconnected by server: IE6 workaround - 2814 bytes sent


Tests performed with FF 3.6.8 and IE8.x
The only way to recover HFS is to close the browser when this occurs.

The bug seems to come from hfs.exe, because it's the same problem with the "old" templates.
Title: Re: Testing build #263
Post by: rejetto on July 31, 2010, 10:40:11 AM
Bizzarre. I tested with the official beta and the default template:
- to delete folders and files with accented characters ... everything worked normally.
The only scenario where this does not work is when I try to delete folders (with accented characters) created from the web page.
(its normal because with the default template, folders created, contain characters rather esoteric.) :D
If I use the option to create folders once corrected ({.convert ...),  I can delete the folders created without worries.

i confirm what you said.
indeed, findFileByURL() is utf8-tolerant :)
Title: Re: Testing build #263
Post by: suriyothai on July 31, 2010, 11:12:19 AM
Sorry my G-Data Anti Virus are warning and delite the build 263 ....there is a virus I can not update on Build 263  :o
sorry for my bad englich...

Lothar
Title: Re: Testing build #263
Post by: rejetto on July 31, 2010, 11:40:55 AM
there's no virus, it's the anti virus that's bad.
search google or the forum to know more.