Bug #3683
closedRudder returns "Server cannot be contacted" if a group criteria is based on a wrong regexp
Description
Searching nodes for a group which got a criteria based on a wrong regexp will timeout with the message "Server cannot be contacted".
I met the case by using a criteria: Node Summary => Hostname => Regexp => debian-7-[0-9](2).* (using parenthesis instead of curled brace) for example.
Updated by Jonathan CLARKE over 11 years ago
I think this may be the same as #3734, but I'm not sure. Let's wait until it's fixed, then check again.
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.3 to 2.6.4
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.4 to 2.6.5
Updated by François ARMAND over 11 years ago
- Status changed from New to Discussion
- Assignee set to Nicolas PERRON
It could be linked to #3674, as suggest: http://www.rudder-project.org/redmine/issues/3674#note-36.
Nicolas, do you think it could be the case?
Updated by Nicolas PERRON over 11 years ago
François ARMAND wrote:
It could be linked to #3674, as suggest: http://www.rudder-project.org/redmine/issues/3674#note-36.
Nicolas, do you think it could be the case?
It seems to be related. Actually, I can't reproduce the issue but Nicolas and me are convinced that it was related to PostgreSQL.
Updated by Nicolas PERRON over 11 years ago
- Status changed from Discussion to Rejected
Nicolas PERRON wrote:
François ARMAND wrote:
It could be linked to #3674, as suggest: http://www.rudder-project.org/redmine/issues/3674#note-36.
Nicolas, do you think it could be the case?
It seems to be related. Actually, I can't reproduce the issue but Nicolas and me are convinced that it was related to PostgreSQL.
I suppose we can reject this bug.
Updated by Nicolas CHARLES over 11 years ago
- Status changed from Rejected to 8
- Assignee deleted (
Nicolas PERRON) - Priority changed from N/A to 2
- Target version changed from 2.6.5 to 2.4.9
I'm resurecting the bug
Using a really invalid regexp (like debian-7-[0-9)(2). ) causes the applicatin to fail
The logs contain java.util.regex.PatternSyntaxException: Unclosed character class near index 17 debian-7-[0-9)(2). ^ at java.util.regex.Pattern.error(Pattern.java:1713) ~[na:1.6.0_26] [2013-09-04 15:41:18] ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing /ajax_request/F714768057225JST3HG-40/ java.util.regex.PatternSyntaxException: Unclosed character class near index 17 debian-7-[0-9)(2). ^ at java.util.regex.Pattern.error(Pattern.java:1713) ~[na:1.6.0_26] (END)
Apply on 2.4 (without the dreaded Server Cannot Be Contacted at this time) up to 2.7
Updated by Nicolas CHARLES over 11 years ago
- Subject changed from Rudder 2.6.2 return "Server cannot be contacted" if a group criteria is based on a wrong regexp to Rudder returns "Server cannot be contacted" if a group criteria is based on a wrong regexp
Updated by Nicolas CHARLES over 11 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/312
The PR is there
https://github.com/Normation/rudder/pull/312
Updated by Nicolas CHARLES over 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 1626dfb4ba4280d19a57c23034f7e7bdac9cdab3.
Updated by Anonymous over 11 years ago
Applied in changeset 976e5801882ecc1b1beea874da54dfd9f70ac84f.
Updated by Nicolas PERRON about 11 years ago
This bug has been fixed in Rudder 2.4.9, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-October/000049.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Nicolas PERRON about 11 years ago
- Status changed from Pending release to Released