You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2009/03/16 21:13:13 UTC
[jira] Commented: (CONTINUUM-2121) Notifier of type Mail does not
support addresses with ip: xxxx [at] 192.168.0.1
[ http://jira.codehaus.org/browse/CONTINUUM-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169867#action_169867 ]
Wendy Smoak commented on CONTINUUM-2121:
----------------------------------------
What was the exact error message?
FWIW, when entering an email address through the Web UI, the regex used to validate email addresses is in
continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/notifier/MailProjectNotifierEditAction-mailProjectNotifierSave-validation.xml
and duplicated in
continuum-webapp/src/main/resources/org/apache/maven/continuum/web/action/notifier/MailGroupNotifierEditAction-mailProjectGroupNotifierSave-validation.xml
It looks like this:
<field-validator type="regex">
<param name="expression"><![CDATA[(^[_A-Za-z0-9-\&]+[\&_A-Za-z0-9-+]*(\.[_A-Za-z0-9-+\&]+)*@([A-Za-z0-9-\&])+(\.[A-Za-z0-9-]+)*((\.[A-Za-z0-9]{2,})|(\.[A-Za-z0-9]{2,}\.[A-Za-z0-9]{2,}))$)]]></param>
<message key="mailNotifier.address.invalid"/>
> Notifier of type Mail does not support addresses with ip: xxxx [at] 192.168.0.1
> -------------------------------------------------------------------------------
>
> Key: CONTINUUM-2121
> URL: http://jira.codehaus.org/browse/CONTINUUM-2121
> Project: Continuum
> Issue Type: Bug
> Components: Notifier - Mail
> Affects Versions: 1.3.1
> Reporter: rrrrutdk
>
> A piece of my pom.xml:
> <ciManagement>
> <system>Continuum</system>
> <url>http://192.168.0.1:8080/continuum</url>
> <notifiers>
> <notify>
> <type>mail</type>
> <send....>true</send...><!-- send on error/failure/warning/success -->
> <configuration>
> <address>me [at] 192.168.0.1</address>
> </configuration>
> </notify>
> </notifiers>
> </ciManangement>
> Continuum showed me the correct notifiers section, but I got nothing new in my inbox after any build of the project.
> So I went to the log file, and found that, Continuum treated "me [at] 192.168.0.1" as an invalid mail address and stopped the notifier.
> Actually, James Server was running on the machine with ip 192.168.0.1.
> I tried to add an entry "mail.com 192.168.0.1" in the hosts file and changed the address "me [at] 192.168.0.1" to "me [at] mail.com" in my pom.xml,
> and finally the notifier worked!
> I was thinking, the regular expression Continuum used for validating a mail address might be ingoring all mail addresses like xxxx [at] 888.888.888.888.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira