From: Jean-Baptiste Lievremont Date: Tue, 4 Feb 2014 17:01:08 +0000 (+0100) Subject: SONAR-4928 Fix validation message in provisioning UI X-Git-Tag: 4.2~259 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4aede162fe2721ff56b2a5aa62b0c2321ef6e061;p=sonarqube.git SONAR-4928 Fix validation message in provisioning UI --- 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)); } }