REGEX action crashes BP application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-18 02:15 PM
Hello everyone,
I came in this issue: when using VBO Utility - Strings, Action Extract regex values, in some cases it causes BP to get totally stuck (specificaly Not responding).
This happens very rarely and I know why - the reason is that the regex pattern is not 100% efficient (it is pretty complex) and for some target texts it leads to 'catastrophic backtracking' (tested in regex testers; in short: there are too many combinations).
What I want to ask is: Is it possible to set some kind of timeout for the action/object to get exception instead of stopping BP? Or is there any other way to overcome this?
Thanks a lot.
Michal Klodner
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-18 07:56 PM
Nope - the only answer is not to create inefficient code..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-05-18 07:21 PM
Hi Denis, sorry for the late reply.
I have found out that .NET Framework 4.5 started supporting TIMEOUT property. I managed to tweak the code stage and get it done.
Anyway, thank your reply.
Michal K.
