WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Filtermask with 9 question marks breaks filtering (Read 7289 times)
Alastair
YaBB Newbies
*
Offline



Posts: 4
Filtermask with 9 question marks breaks filtering
Aug 1st, 2006 at 6:13pm
 
Hi,

I've noticed some unusual behaviour if you create the following filtermask:

*\?????????.doc

This has exactly 9 question marks. The problem is that this appears to let through files such as abc.log, test.bak and others.

If I remove this filter (leaving some others in place) or reduce the number of question marks to 8 then it works as expected.

Seems weird to me but thats what seems to be happening,
Alastair
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2381
The Netherlands
Re: Filtermask with 9 question marks breaks filter
Reply #1 - Aug 1st, 2006 at 6:57pm
 
Hello Alastair,

I am aware the current implementation of the pattern-matching on "files that trigger events" is not really satisfactory.
What is happening is that the matcher sees a match on *\????????? and does not continue to see if there is something of the pattern (.doc) left...

I am busy to redesign the "files that trigger events" window to make it a lot more flexible. It should be ready for beta somewhere next week.

This is the "syntax" i am implementing now:
Code:
When the {[complete path|filename|file title|file extension] [starts with|ends with|contains|matches|equals] <value>
	   | file size is [smaller|bigger] than <value> [bytes|kilobytes|megabytes|gigabytes]
	   } then [process it|do not process it]
	    [Exceptions:]
 


Below "Exceptions" you can nest another parse-tree like above.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Alastair
YaBB Newbies
*
Offline



Posts: 4
Re: Filtermask with 9 question marks breaks filter
Reply #2 - Aug 2nd, 2006 at 11:19am
 
Ok thanks.

Following your explanation, I tried some other file extensions with shorter names like '12.txt' and files with no extensions 'abcd' and so on. Basically any short filename is going to slip through my filtering!

This is a bit more serious than I originally thought and is a show-stopper for my evaluation I'm afraid. I would be interested in looking at the beta for the new filtering when it becomes available. ETA?

By the way, I'm using dynamic naming for the file copy (great feature!) and it does some peculiar stuff if the file has no extension. It seems to remember the extension from the previous file that was copied and uses bits of it (eg. just the last letter or something).

The dynamic naming formula I'm using is: U:\test\dest\{parentdir}{right{6,000000{stringbefore{-,{filetitle}}}}}.{extensio
n}

This won't be a problem for me when the filtering is changed because I won't be copying files with no extension but I just thought you should know.

Regards,
Alastair
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2381
The Netherlands
Re: Filtermask with 9 question marks breaks filter
Reply #3 - Aug 2nd, 2006 at 6:03pm
 
Actually, I think I fixed the issue.
If you...
- download this file: http://www.watchdirectory.net/beta/Release.zip
- stop all WD tasks and the WD Control Center
- and overwrite wdrun.exe and wdcc.exe inside the directory where you installed watchDirectory

You now will have a new option on the "files that trigger...." window, called "strict matching". If you enable that option, it should work a lot better.

BETA ALERT: I did not do very much testing
NEW VERSION ALERT: The next release will replace the "files that trigger" window with a new one, like described above.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Alastair
YaBB Newbies
*
Offline



Posts: 4
Re: Filtermask with 9 question marks breaks filter
Reply #4 - Aug 3rd, 2006 at 11:14am
 
Wow, thanks! I wasn't expecting such a quick response.

This patch seems to fix the problem. It is no longer letting through unwanted files.

I think this product now ticks all of my requirements. I shall be recommending it for purchase.

I assume if we purchase now then we can upgrade to the next version with the new filtering for free?

When do you anticipate this version being released?

Thanks again,
Alastair
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2381
The Netherlands
Re: Filtermask with 9 question marks breaks filter
Reply #5 - Aug 3rd, 2006 at 11:59am
 
Thanks for letting me know.
All 4.x versions are free when you buy a 4.x version.
The new 4.0.48 version should be ready/released ~1 month from now. It will be available on the Beta forum before that.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2381
The Netherlands
Re: Filtermask with 9 question marks breaks filter
Reply #6 - Sep 3rd, 2006 at 11:55am
 
The 4.1 beta is now available here:
http://www.watchdirectory.net/cgi-bin/yabb2/YaBB.pl?num=1157272493

It has a replacement for the "Files that trigger events" window that allows you to filter events in an easier and more flexible way.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1