aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2020-09-25 15:35:32 +0300
committerGitHub <noreply@github.com>2020-09-25 15:35:32 +0300
commit43d21c486fbcbc32caf30a4125b58526597af21e (patch)
treea7aef34806cd95e9a81db5c0c7b5cb681742b2c6 /server/src
parentbafab4554a43f7c0214e919fa9d594a92305bc92 (diff)
downloadvaadin-framework-43d21c486fbcbc32caf30a4125b58526597af21e.tar.gz
vaadin-framework-43d21c486fbcbc32caf30a4125b58526597af21e.zip
Adding regression test against malicious input (#12105)
Diffstat (limited to 'server/src')
-rw-r--r--server/src/test/java/com/vaadin/data/validator/EmailValidatorTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/test/java/com/vaadin/data/validator/EmailValidatorTest.java b/server/src/test/java/com/vaadin/data/validator/EmailValidatorTest.java
index b71ccf541b..a9a78d469f 100644
--- a/server/src/test/java/com/vaadin/data/validator/EmailValidatorTest.java
+++ b/server/src/test/java/com/vaadin/data/validator/EmailValidatorTest.java
@@ -69,6 +69,11 @@ public class EmailValidatorTest extends ValidatorTestBase {
}
@Test
+ public void testEmailValidatorWithBadInput() {
+ assertFails("a@a.m5qRt8zLxQG4mMeu9yKZm5qRt8zLxQG4mMeu9yKZm5qRt8zLxQG4mMeu9yKZ&",validator("validator not halting on bad input"));
+ }
+
+ @Test
public void testLongTldPasses() {
assertPasses("joonas@vaadin.management", shouldNotFail());
}