rejetto forum
May 25, 2012, 07:14:44 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Testing build #218  (Read 9065 times)
0 Members and 1 Guest are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« on: December 28, 2008, 10:58:51 AM »

i'll work on other bugs soon Wink
this build also changes the way requests are multi-tasked. let's see if it's better.

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

what's new
+ new template macro: current downloads of file
- "manage user accounts" proper moving resizing dialog
- "speed limit for single address" didn't apply sometimes
- {.add header.} didn't work properly www.rejetto.com/forum/?topic=6481
Logged
JellyFrog
Experienced poster
***
Offline Offline

Sweden Sweden

Posts: 39


View Profile
« Reply #1 on: December 28, 2008, 11:12:10 AM »

{.if|{.?xml.}| {.$xmlpage.} | {.$stdpage.} /if.}

[xmlpage]
{.add header|Content-Type: application/xml.}
XML!

[stdpage]
{.add header|Content-Type: text/html.}
HTML!


http://localhost/?xml =
XML!
Content-Type: text/html


http://localhost/
=
HTML!
Content-Type: text/html


Bug or im doing something wrong? Smiley


EDIT:
Im doing it wrong...

it seems like HFS don't care where the macros are?
It execute them all... in the case it execute the: "{.add header|Content-Type: application/xml.}" even if i dont call for [xmlpage]
a solution to this is:

{.if|{.?xml.}| {:{.add header|Content-Type: application/xml.}{.$xmlpage.}:} | {.$stdpage.} /if.}

bug or not?
« Last Edit: December 28, 2008, 11:34:47 AM by JellyFrog » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #2 on: December 28, 2008, 01:18:09 PM »

use {.mime|application/xml.}
this is the expected command for your purpose.
anyway, from next build, your code should work correctly.
« Last Edit: December 28, 2008, 02:58:15 PM by rejetto » Logged
luckman212
Regular poster
**
Offline Offline

United States United States

Posts: 28


View Profile
« Reply #3 on: December 28, 2008, 03:19:29 PM »

I am having template problem
with uploads
I am using default template.
HFS says "Template error at 4,1" after upload, and some variables are shown as '%' items instead of the value
see screen shots below:







Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #4 on: December 28, 2008, 03:22:33 PM »

JellyFrog, i fear my suggestion won't work because of a bug.
so you'll have to wait for next build. Sad
Logged
JellyFrog
Experienced poster
***
Offline Offline

Sweden Sweden

Posts: 39


View Profile
« Reply #5 on: December 28, 2008, 03:30:59 PM »

JellyFrog, i fear my suggestion won't work because of a bug.
so you'll have to wait for next build. Sad
Nopp, your suggestion didn't work, but my solution works fine Smiley

{.if|{.?xml.}| {:{.add header|Content-Type: application/xml.}{.$xmlpage.}:} | {.$stdpage.} /if.}

Ugly but works Wink
Logged
rejetto forum
« Reply #5 on: December 28, 2008, 03:30:59 PM »

Do you like this software? Consider even $2
 Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #6 on: December 28, 2008, 03:33:40 PM »

Quote
Insert Quote
JellyFrog, i fear my suggestion won't work because of a bug.
so you'll have to wait for next build.

NOT A BUG , BUT ERROR IN TEMPLATE

Delete simply what I put in blocked red

Quote
[upload-success]
<li><a href='%item-url%'>%item-name%</a>: <b>{.!OK.}</b> --- %item-size%  ({.!Speed.} %speed% KB/s)
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}=uploaded by %user%
/append.} :}/if.}
{.append|

[upload-failed]
.....
« Last Edit: December 28, 2008, 03:49:10 PM by mars » Logged
luckman212
Regular poster
**
Offline Offline

United States United States

Posts: 28


View Profile
« Reply #7 on: December 28, 2008, 05:17:15 PM »

perfect!  Grin
thank you

hope rejetto can notice this one and fix in his next version
Logged
MarkV
Insane poster
*****
Offline Offline

Germany Germany

Posts: 725



View Profile
« Reply #8 on: December 29, 2008, 02:31:34 AM »

In the Property... dialog of the root, setting an icon does not work.
a) If it's meant to be that way, you should also lock the 'Add new...' button which is still working, but without result.
b) If not, it's a bug and should be swatted.  Wink

How can I get rid of the Home/ thing? I'd prefer it to be just /, but fear it is hard coded.

If you use the Debug menu to reset the settings temporarily to default, it puts you in Easy mode, effectively hiding the 'Restore options' setting. Maybe you could set the Restore setting into the top bar (like the one when the server is switched OFF) to avoid confusion.
« Last Edit: December 29, 2008, 02:33:42 AM by MarkV » Logged

Welcome to Twinkle Park! Grin
JellyFrog
Experienced poster
***
Offline Offline

Sweden Sweden

Posts: 39


View Profile
« Reply #9 on: December 29, 2008, 08:01:30 PM »

{.add header|Content-type: application/xml.}
Adds both text/html and application/xml:

HTTP/1.1 200 OK
Content-Type: text/html
Content- Length: 322
Accept-Ranges: bytes
Server: HFS 2.3 beta
Cache-Control: no-cache, no-store, must-revalidate, max-age=-1
Content-type: application/xml


A solution for this should be that HFS shouldn't report any content-type so you need to set it yourself  (an "expert-mode" setting of course, quite annoying else Smiley)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #10 on: December 29, 2008, 08:04:55 PM »

{.add header|Content-type: application/xml.}
Adds both text/html and application/xml:

that's what i meant in my last post Wink
already fixed for next build
Logged
TgwowgT
Occasional poster
*
Offline Offline

Italy Italy

Posts: 7


View Profile Email
« Reply #11 on: December 30, 2008, 05:27:17 AM »

Sorrry...but.. no news about the memory bug? I remember you that after some test, the first version that work fine on my vps is the 187 (with RAWR template 0.1.1 without delete).
The bug can be easily reproducible,  simply leave the program run for some days, then download a file (in my case from 300 to 4000 M) with a dl accelerator (i use downthemall in firefox) and/or more then one file.
The memory size of HFS, mesured with Task Manager, grow to full the memory (> 500M, then the system hangs....).
I hope this is usefull, for more info e/o test.... i'm here!
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #12 on: December 30, 2008, 08:38:51 AM »

> b) If not, it's a bug and should be swatted.  Wink

done

> How can I get rid of the Home/ thing? I'd prefer it to be just /, but fear it is hard coded.

it's in the template, not hard-coded. And i forgot to make it "localizable".
if you use the default template, from next build you'll be able to change it just by redefining [special:strings] in the diff tpl.
your mileage/template may vary. Wink

> If you use the Debug menu to reset the settings...

i like this idea. next build.
Logged
MarkV
Insane poster
*****
Offline Offline

Germany Germany

Posts: 725



View Profile
« Reply #13 on: December 30, 2008, 03:16:04 PM »

it's in the template, not hard-coded. And i forgot to make it "localizable".
if you use the default template, from next build you'll be able to change it just by redefining [special:strings] in the diff tpl.
your mileage/template may vary. Wink
Using RAWR template, found it in the language files. Thanks.
Logged

Welcome to Twinkle Park! Grin
TgwowgT
Occasional poster
*
Offline Offline

Italy Italy

Posts: 7


View Profile Email
« Reply #14 on: January 04, 2009, 04:30:25 AM »

May be you have avoid my post ...

Quote
Sorry...but.. no news about the memory bug? I remember you that after some test, the first version that work fine on my vps is the 187 (with RAWR template 0.1.1 without delete).
The bug can be easily reproducible,  simply leave the program run for some days, then download a file (in my case from 300 to 4000 M) with a dl accelerator (i use downthemall in firefox) and/or more then one file.
The memory size of HFS, mesured with Task Manager, grow to full the memory (> 500M, then the system hangs....).
I hope this is usefull, for more info e/o test.... i'm here!

In my opinion this is a serious bug; certainly a lot of people have this problem (see the thread about 216). No workaround about? The 187 work fine but a lot of features (e.g. group management) are missing...
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 23, 2012, 08:22:03 AM
anything