Project

General

Profile

Actions

Bug #6680

closed

Bad RegEx in Groups causes Server to not respond

Added by Janos Mattyasovszky almost 6 years ago. Updated almost 6 years ago.

Status:
Released
Priority:
2
Category:
Web - UI & UX
Target version:
Severity:
User visibility:
Effort required:
Priority:

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 #1

Updated by Matthieu CERDA almost 6 years ago

  • Assignee set to François ARMAND
  • Priority changed from N/A to 2

Thank you Janos.

Giving this ticket to FAR!

Actions #2

Updated by François ARMAND almost 6 years ago

Oh yes, that's not a good one.
Thanks for reporting.

Actions #3

Updated by François ARMAND almost 6 years ago

  • Target version set to 2.10.14

Ok, it can be reproduced and is present since 2.10.

Actions #4

Updated by François ARMAND almost 6 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/869
Actions #5

Updated by François ARMAND almost 6 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #7

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.14, 2.11.11 and 3.0.5 which were released today.

Actions

Also available in: Atom PDF