samir-araujo / apache-scalp

Automatically exported from code.google.com/p/apache-scalp
0 stars 0 forks source link

Scalp not able to compile rule propery #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by demetris...@gmail.com on 2 Feb 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Loading XML file './default_filter.xml'...
The rule 
'(?:union\s*(?:all|distinct|[(!@]*)?\s*[([]*\s*select)|(?:\w+\s+like\s+\")|(?:li
ke\s*"\%)|(?:"\s*like\W*["\d])|(?:"\s*(?:n?and|x?or|not 
|\|\||\&\&)\s+[\s\w]+=\s*\w+\s*having)|(?:"\s*\*\s*\w+\W+")|(?:"\s*[^?\w\s=.,;)(
]+\s*[(@"]*\s*\w+\W+\w)|(?:select\s*[\[\]()\s\w\.,-]+from)' cannot be compiled 
properly

Original comment by demetris...@gmail.com on 2 Feb 2011 at 9:56

GoogleCodeExporter commented 9 years ago
I just commented out that rule in the default_filter.xml file. It is rule 45. 

Original comment by mwcoa...@gmail.com on 21 Feb 2011 at 5:37

GoogleCodeExporter commented 9 years ago
Yes same problem.  Also had problem with rule 73.  Should we have an option 
saying that if a rule does not compile that it shows up in the error log but 
continues on with the rest?

Original comment by homer.jo...@gmail.com on 26 Jan 2012 at 12:25

GoogleCodeExporter commented 9 years ago
Hi, for me it is the same problem

Original comment by ad...@iww.uni-hannover.de on 25 Mar 2013 at 8:18

GoogleCodeExporter commented 9 years ago
just replace :
(?:all|distinct|[(!@]*)?   with   (?:all|distinct|[(!@]+)?
and 
(?i:(\%SYSTEMROOT\%))     with    
(?:(\%[sS][yY][sS][tT][eE][mM][rR][oO][oO][tT]\%))

Original comment by MedGhait...@gmail.com on 6 Aug 2015 at 10:49