rejetto forum

Testing build #272

rejetto · 44 · 40664

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
download @ www.dovedove.it/hfs/hfs272.exe

what's new
+ new scripting command: maybe utf8
- default template: problems with "move" and non-ansi items
- AV with junctions in uploadable folders


aef

  • Guest
When you do an upload seems that everything is fine but in the end says not allowed and does not write anything


aries87

  • Guest

Offline jerome

  • Occasional poster
  • *
    • Posts: 36
    • View Profile
Hello
i discover a strange surprise using the last mcafee stinger...on it.(normally nothing wrong with HFS)




i have destroy the suspicious file and check a scan from a new downloaded exe to see what happend.
the time to load the vfs...and scan, but it is idem.

i hope i am the only one unlucky...  ;D
« Last Edit: November 23, 2010, 06:52:45 AM by jerome »


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
False positive... Allow this file... if McAfee allow you to do it!
It's an server, not a trojan! ;D

On the McAfee forum I read a little; it seems that it's a habit of detecting some variant of Artemis in softwares that doesn't contain anything suspicious.
Their only common point is having to use a port for external access... as a trojan (or an server  ;))

https://community.mcafee.com/community/security/malware_discussion

Some antivirus display a warning more explicit and less ridiculous... and nothing for MacAfee (2010.11.22) :-\
Update your soft.

http://www.virustotal.com/file-scan/report.html?id=4c7eb5d44ae9a27aa309fd0862404730b17818c4eb12dc7056eb535711ecaf52-1290498723
« Last Edit: November 23, 2010, 08:47:10 AM by SilentPliz »


Offline timteka

  • Occasional poster
  • *
    • Posts: 18
    • View Profile
Same problem as AEF. Cannot upload anything. Logs "Upload failed, Not allowed" for every attempt


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
I too have seen upload problems with 272,
however it seems to be intermittent here.
I'm on Ubuntu / Wine so I have too many
variables to isolate the cause easily.


Offline rejetto

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

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
There is a defect in the use of NO LOG and PRIVATE in sections, for every different section the last one of the same name is taken into account.

[name]
[+name|no log]
[+name|private]
[+name]

then "private" and "no log"  are always ignored, except when they are defined in the last line so that it works

[name]
[+name]
[+name]
[+name|no log|private]

So that the system works correctly it is enough to modify the code source(spring), and it is so possible to place "no log" and "private" wherever

[name]
[noname]
[+name=+noname|no log]
[+name]
[+noname|private]

with this example
 by  [+name=+noname|no log]  the two sections are defined as no log
 by [+noname|private]   only the whole section noname is private

Quote
 procedure saveInSection();
  var
    ss: TStringDynArray;
    s, other: string;
    i, si: integer;
    base: TtplSection;
    till: pchar;
    prepend, nolog, nourl: boolean;
  begin
  till:=pred(bos);
  if till = NIL then till:=pred(strEnd(ptxt));
  if till^ = #10 then dec(till);
  if till^ = #13 then dec(till);

  base.txt:=getStr(ptxt, till);
  // there may be flags after |
  s:=cur_section;
  cur_section:=chop('|', s);
 nolog:=ansiPos('no log', s) > 0;
  nourl:=ansiPos('private', s) > 0;

  // there may be several section names separated by =
  ss:=split('=', cur_section);
  // handle the main section specific case
  if ss = NIL then addString('', ss);
  // assign to every name the same txt
  for i:=0 to length(ss)-1 do
    begin
    s:=trim(ss[i]);
    prepend:=ansiStartsStr('+', s);
    if prepend then
      begin
      delete(s,1,1);
      other:=getTxt(s);
      end;
    base.name:=s;
    si:=createIdx(s);
   base.nolog:=sections[si].nolog or nolog;
    base.nourl:=sections[si].nourl or nourl;

    sections[si]:=base;
    if prepend then
      insert(other, sections[si].txt, 1);
    end;
  end; // saveInSection

private note to rejetto: all sections SPECIAL:xxx  are always PRIVATE not necessary  to add it in the template
[special:xxx|private]
 ;)
« Last Edit: November 30, 2010, 08:12:01 PM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
thank you mars. After much thought i came with this version

Code: [Select]
  procedure saveInSection();
  var
    ss: TStringDynArray;
    s: string;
    i, si: integer;
    base: TtplSection;
    till: pchar;
    append: boolean;
    sect: PtplSection;
  begin
  till:=pred(bos);
  if till = NIL then till:=pred(strEnd(ptxt));
  if till^ = #10 then dec(till);
  if till^ = #13 then dec(till);

  base.txt:=getStr(ptxt, till);
  // there may be flags after |
  s:=cur_section;
  cur_section:=chop('|', s);
  base.nolog:=ansiPos('no log', s) > 0;
  base.nourl:=ansiPos('private', s) > 0;
  // there may be several section names separated by =
  ss:=split('=', cur_section);
  // handle the main section specific case
  if ss = NIL then addString('', ss);
  // assign to every name the same txt
  for i:=0 to length(ss)-1 do
    begin
    s:=trim(ss[i]);
    append:=ansiStartsStr('+', s);
    si:=getIdx(s);
    if si < 0 then // not found
      sect:=newSection(s)
    else
      begin
      sect:=@sections[si];
      if append then
        begin
        sect.txt:=sect.txt+base.txt;
        continue;
        end;
      end;
    sect^:=base;
    sect.name:=s; // restore this lost attribute
    end;
  end; // saveInSection

// this is replacing createIdx()
function Ttpl.newSection(section:string):PtplSection;
var
  i: integer;
begin
// add
i:=length(sections);
setLength(sections, i+1);
result:=@sections[i];
result.name:=section;
// getIdx just filled 'last' with not-found, so we must update
last.section:=section;
last.idx:=i;
// manage file.EXT sections
if not ansiStartsText('file.', section) then exit;
i:=length(fileExts);
setLength(fileExts, i+2);
delete(section, 1, 4);
fileExts[i]:=section;
fileExts[i+1]:=str_(last.idx);
lastExt.section:=section;
lastExt.idx:=last.idx;
end; // newSection

« Last Edit: December 01, 2010, 01:47:27 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
you version create a bug with %list% , all section with + are not added
and that not resolve  the problem of private-nolog >:

(
Quote
procedure saveInSection();
  var
    ss: TStringDynArray;
    s: string;
    i, si: integer;
    base: TtplSection;
    till: pchar;
    append: boolean;
    sect: PtplSection;
  begin
  till:=pred(bos);
  if till = NIL then till:=pred(strEnd(ptxt));
  if till^ = #10 then dec(till);
  if till^ = #13 then dec(till);

  base.txt:=getStr(ptxt, till);
  // there may be flags after |
  s:=cur_section;
  cur_section:=chop('|', s);

  base.nolog:=ansiPos('no log', s) > 0;
  base.nourl:=ansiPos('private', s) > 0;
  // there may be several section names separated by =
  ss:=split('=', cur_section);
  // handle the main section specific case
  if ss = NIL then addString('', ss);
  // assign to every name the same txt
  for i:=0 to length(ss)-1 do
    begin
    s:=trim(ss);
    append:=ansiStartsStr('+',s);
   if append then delete(s,1,1);  //this is missing
    si:=getIdx(s);
    if si < 0 then // not found
      sect:=newSection(s)
    else
      begin
      sect:=@sections[si];
      if append then
        begin
        sect.txt:=sect.txt+base.txt;
        sect.nolog:= sect.nolog or base.nolog;
        sect.nourl:= sect.nourl or base.nourl;

        continue;
        end;
      end;
    sect^:=base;
    sect.name:=s; // restore this lost attribute
    end;
  end; // saveInSection
« Last Edit: December 01, 2010, 11:48:41 PM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
sorry for the upload thing, guys, but couldn't reproduce the problem.
If you find additional details on what's wrong and what's not, or even if you find by no shadow of doubt that previous build (271) has not such problem while current (272) does, please report.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
sorry for the upload thing, guys, but couldn't reproduce the problem.
If you find additional details on what's wrong and what's not, or even if you find by no shadow of doubt that previous build (271) has not such problem while current (272) does, please report.

It is very likely that the problem seems only with characters not ansi


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
@aries87
it's not considered stable, at least by me.

@mars
nope, i just tried with non-ansi characters and all went well.
fact is that if 2 persons met this problem with the same release it's likely to be a real problem and not just a blunder.
and some of the change

and thanks again for the fix, because i had fixed losing attributes, but was not accepting new ones.