E-mail validator accepts invalid addresses
Hello! I just noticed that the e-mail validator for input fields accepts strings like u...@host.tld, (note the trailing comma). As far as I understand the RFC, a comma may not be part of an e-mail address. But the InternetAddress class of Java also parses this address without an error. So is this a bug in Tapestry _and_ Java or did I misread the RFC? Regards Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: E-mail validator accepts invalid addresses
On 04.08.2011 09:41, Stephan Windmüller wrote: I just noticed that the e-mail validator for input fields accepts strings like u...@host.tld, (note the trailing comma). Oups, I am sorry. I just noticed that the project I am working on globally overrides the e-mail validator. When using the regex shipped with Tapestry, the defective addresses are detected. So it seems that only InternetAddress has a bug. - Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: E-mail validator accepts invalid addresses
Hi Stephan, Stephan Windmüller wrote: So it seems that only InternetAddress has a bug. Did you use the parse-methods/constructors with the boolean parameter strict set to true? And in fact , are allowed in so called route-addresses (what ever that may be). - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/E-mail-validator-accepts-invalid-addresses-tp4665488p4665860.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org