WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Bug Reports >> Filtermask with 9 question marks breaks filtering
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1154452425

Message started by Alastair on Aug 1st, 2006 at 7:13pm

Title: Filtermask with 9 question marks breaks filtering
Post by Alastair on Aug 1st, 2006 at 7: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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Gert on Aug 1st, 2006 at 7: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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Alastair on Aug 2nd, 2006 at 12:19pm
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]]}.{extension}

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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Gert on Aug 2nd, 2006 at 7: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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Alastair on Aug 3rd, 2006 at 12:14pm
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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Gert on Aug 3rd, 2006 at 12:59pm
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

Title: Re: Filtermask with 9 question marks breaks filter
Post by Gert on Sep 3rd, 2006 at 12:55pm
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

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.