rejetto forum

Testing build #146

rejetto · 36 · 21864

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i have still some bugs to fix, but you deserve a new build :P

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

what's new
+ new template macros: count, replace
+ new template symbol: %item-relative-folder% www.rejetto.com/forum/?topic=5250
* %ip2name% renamed to %ip-to-name%
* "Experimental high speed handling" is ON by default
- sometimes macros or symbols were left untranslated
- some bugs in the template engine
- updating asks twice for saving www.rejetto.com/forum/?topic=5269
- fixed a bug preventing Apache to act as a reverse proxy www.rejetto.com/forum/?topic=4200


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Something wrong with this build.  I can't say that it actually crashes but on start-up once I start to browse the folders/sub-folders, HFS quits and Exits all of a sudden.  I can reproduce this problem everytime I try to browse a folder/sub-folder.
« Last Edit: November 24, 2007, 07:55:36 PM by maverick »
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it works with subfolders here
find more clues about the problem or pass me your vfs and ini (privately)


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Quote
it works with subfolders here
find more clues about the problem or pass me your vfs and ini (privately)

Make one or more of the sub-folders archivable.  Then try to access them.  HFS will quit and Exit.
« Last Edit: November 25, 2007, 02:37:15 AM by maverick »
maverick


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
many thanks rejetto

Quote
- sometimes macros or symbols were left untranslated

I was spending some hours trying and searching bugs in my templates because of that behaviour - now with this new build is seemed all ok !

But:  comment macros dont work and some macros inside a html section are still not expanded.

{{ comment | some text }} is just rendered as plain text: "{{ comment | some text }}"
« Last Edit: November 25, 2007, 06:53:00 AM by bacter »
your computer has no brain - use your own !


Guest

  • Guest
%new% now shows in front of folders and files in 146.
Checked with Opera, FF, Safari, IE 6 & 7.


Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
For some reason i can't log in anymore for both this latest version and the version before. I tried to access the root folder
and instead of opening the login page, it opened the login popup instead. Entered my username and password but it just
popped up the login box again. I also tried with 'Temporarily reset settings' checked. Still same thing. I'm using the same
login details i've always used.

I'm unsure if this is a related problem, but When i was setting a folder's 'Restrict Access' settings in the left pane of HFS,
the folder reported no users as having access even though several did. I clicked one of the users' names and when i went
back into the menu a whole bunch were checked (all the correct ones). I haven't been able to replicate this again, however.

One more problem, connections are being cut as soon as the person tries to load the page, and no log of their connection is
saved. That might have something to do with them just hitting the login popup, i don't know.
« Last Edit: November 25, 2007, 05:02:42 AM by Flynsarmy »


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
Im getting the same thing as flynsarmy with the login box continually popping up, was all fine with the last build.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Flynsarmy and Foggy are correct, the login is broken, just constantly pops up.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
 to rejetto: A forgetting for the next version

Quote
procedure TmainFrm.newfolder1Click(Sender: TObject);
var
  name: string;
begin
name:=getUniqueNodeName('New folder', filesBox.selected);
addFile(Tfile.createVirtualFolder(name), filesBox.Selected).node.Selected:=TRUE;
rename1click(sender);
end;

it is to enter directly new name when adding New Virtual Folder.

******************************************************

%folder% non correctement initialisé

MAIN.PAS:

ligne 3155 appel de getBaseSymbolsTable() qui definit %folder%

or dans le code ligne 3060 il est fait appel à %folder%

if recur then
              begin
              s:=optUTF8(diffTpl.utf8, f.getFolder());
              url:=copy(s, ofsRelUrl, MAXINT);
              end
            else
              begin
              s:='%folder%';   //%folder est indéfini ici (me semble-t-il)
              url:='';
              end;


je ne suis pas devin et la partie ligne 3060 non plus elle ne peut savoir ce qui sera initialisé plus loin :-\

if recur then
begin
...
end;

n'est pas nécessaire

utiliser simplement:


              s:=optUTF8(diffTpl.utf8, f.getFolder());
              url:=copy(s, ofsRelUrl, MAXINT);
              addArray(table, [
              '%item-folder%', s,
              '%item-relative-folder%', url
               ]);

tout est comme il faut

**************************************************************************
bug in %item-full-url% with links

if url of link is HTPP://server/page.html 

result of %item-full-url% is equiv to   %host%%folder%HTPP://server/page.html 

see attached file hfs.tpl to test it


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
{{ comment | some text }} is just rendered as plain text: "{{ comment | some text }}"

spaces after {{ are not tolerated.
macro name must follow.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it is to enter directly new name when adding New Virtual Folder.

nice idea

Quote
%folder% non correctement initialisé

no, it would have been just translated at a later stage.
the problem was another: function applyMacrosAndSymbols searched symbols through the 'table' for any index, while it should be only allowed translations from even indexes to odd indexes.

Quote
bug in %item-full-url% with links

fixed


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
last bug found

insert this in your template and make several click on it and look at url

<a href="{{get|url|test}}"> 


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Flynsarmy and Foggy are correct, the login is broken, just constantly pops up.

it works ok here. is this happening only with TOG ?