From 4aede162fe2721ff56b2a5aa62b0c2321ef6e061 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Tue, 4 Feb 2014 18:01:08 +0100 Subject: [PATCH] SONAR-4928 Fix validation message in provisioning UI --- .../sonar/server/component/DefaultRubyComponentService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/java/org/sonar/server/component/DefaultRubyComponentService.java b/sonar-server/src/main/java/org/sonar/server/component/DefaultRubyComponentService.java index ab2502ba3f1..cefa4e6cd9d 100644 --- a/sonar-server/src/main/java/org/sonar/server/component/DefaultRubyComponentService.java +++ b/sonar-server/src/main/java/org/sonar/server/component/DefaultRubyComponentService.java @@ -131,7 +131,8 @@ public class DefaultRubyComponentService implements RubyComponentService { private void checkKeyFormat(String qualifier, String kee) { if (!ComponentKeys.isValidModuleKey(kee)) { - throw new BadRequestException(formatMessage("Malformed key for %s: %s", qualifier, kee)); + throw new BadRequestException(formatMessage("Malformed key for %s: %s. Allowed characters are alphanumeric, '-', '_', '.' and ':', with at least one non-digit.", + qualifier, kee)); } } -- 2.39.5