Project

General

Profile

Actions

Bug #6680

closed

Bad RegEx in Groups causes Server to not respond

Added by Janos Mattyasovszky over 9 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Category:
Web - UI & UX
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When creating a dynamic group with a wrong regex syntax (in our Case this was '*Dell*'), there is a Browser-Popup, that the server cannot be contacted, and the webapp logs show following error:

[2015-05-28 14:43:56] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing /ajax_request/F489057879936U5AHHI-90/
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*Dell*
^
[2015-05-28 14:43:57] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing /ajax_request/F489057879936U5AHHI-90/
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*Dell*
^

This should be handled with a more user-friendly error message...

We used rudder-*-3.0.4.release-1.SLES.11 packages on a SLES11 SP3.

Actions

Also available in: Atom PDF