modules/enterprise/server/plugins/alert-email/src/main/resources/META-INF/rhq-serverplugin.xml
| 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit ba920165b17375ae507ab72ae866e69c22c15395
Author: John Mazzitelli <mazz(a)redhat.com>
Date: Fri Feb 18 14:23:24 2011 -0500
BZ 569824 add a basic email address validation regex
diff --git
a/modules/enterprise/server/plugins/alert-email/src/main/resources/META-INF/rhq-serverplugin.xml
b/modules/enterprise/server/plugins/alert-email/src/main/resources/META-INF/rhq-serverplugin.xml
index d065ef3..246b931 100644
---
a/modules/enterprise/server/plugins/alert-email/src/main/resources/META-INF/rhq-serverplugin.xml
+++
b/modules/enterprise/server/plugins/alert-email/src/main/resources/META-INF/rhq-serverplugin.xml
@@ -24,7 +24,13 @@
<!-- What can a user configure when defining an alert -->
<alert-configuration>
<c:simple-property name="emailAddress" displayName="Receiver
Email Address(es)" type="longString"
- description="Email addresses (separated by comma) used for
notifications."/>
+ description="Email addresses (separated by comma) used for
notifications.">
+ <c:constraint>
+ <!-- a real email regex that validates all possible email address
would be thousands of chars long -->
+ <!-- here we do just a very basic validation of comma-separated
str1@str2 -->
+ <c:regex-constraint expression=".+@[^@, ]+(,.+@[^,@
]+)?"/>
+ </c:constraint>
+ </c:simple-property>
</alert-configuration>
</alert-plugin>
Show replies by date