Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002232 [JEDI VCL] 00 JVCL Components minor always 2004-10-17 01:24 2004-10-17 09:00
Reporter anonymous View Status public  
Assigned To remkobonte
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002232: bug in TjvSearchFiles
Description line 497 in JvSearchFiles.pas has written
if cFileName[0] <> '.' then

it should be
if (cFileName <> '.') or (cFileName <> '..') and AnsiStrIComp(cFileName, 'System Volume Information') = 0 then

Why folder names can begin with . (dot)
I have successfully created folder '.net' not in
windows explorer but in command line with md .net
We should also skip 'System Volume Information' folder
I have the experience of Search failing if we would like to search in that folder or even crashin application.

Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0005417)
remkobonte (developer)
2004-10-17 09:00

* I have added function IsDotOrDotDot that replaces the cFileName[0] <> '.' check.
* I have added 2 flags to TJvSearchFiles.Options:

  o soIncludeSystemHiddenDirs
  o soIncludeSystemHiddenFiles

that are default off. So at default the component does NOT search in directories that are both hidden and system (such as 'System Volume Information'), and does NOT return files that are both hidden and system (such as IO.SYS)

- Issue History
Date Modified Username Field Change
2004-10-17 01:24 anonymous New Issue
2004-10-17 09:00 remkobonte Status new => resolved
2004-10-17 09:00 remkobonte Resolution open => fixed
2004-10-17 09:00 remkobonte Assigned To => remkobonte
2004-10-17 09:00 remkobonte Note Added: 0005417


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker