ashenchowthee / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

Search regex might not be validated #1619

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From Issue 1615.

Steps to reproduce the issue:
1. Run ZAP;
2. Select the "Search" tab;
3. Add an invalid regex, for example "*", and press Enter;
4. Note that no dialogue is shown indicating that the regex is invalid, also in 
the log there's an exception:
[...]
33606 [ZAP-SearchThread] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  - 
Exception in thread "ZAP-SearchThread"
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*
^
    at java.util.regex.Pattern.error(Pattern.java:1924)
    at java.util.regex.Pattern.sequence(Pattern.java:2090)
    at java.util.regex.Pattern.expr(Pattern.java:1964)
    at java.util.regex.Pattern.compile(Pattern.java:1665)
    at java.util.regex.Pattern.<init>(Pattern.java:1337)
    at java.util.regex.Pattern.compile(Pattern.java:1047)
    at org.zaproxy.zap.extension.search.SearchThread.search(Unknown Source)
    at org.zaproxy.zap.extension.search.SearchThread.run(Unknown Source)
[...]

Remarks:
If the search is started by clicking the "Search" button the regex is validated.

ZAP Version:
Version 2.4.0 (previous versions are also affected)

Original issue reported on code.google.com by THC...@gmail.com on 30 Apr 2015 at 2:04

GoogleCodeExporter commented 9 years ago
r6090

Original comment by THC...@gmail.com on 4 May 2015 at 7:59

GoogleCodeExporter commented 9 years ago
Merged into branch 2.4 (r6096).

Original comment by THC...@gmail.com on 5 May 2015 at 4:00

GoogleCodeExporter commented 9 years ago
ZAP has been migrated to github

This issue will be on github issues with the same ID: 
https://github.com/zaproxy/zaproxy/issues

Original comment by psii...@gmail.com on 5 Jun 2015 at 9:18