You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org> on 2007/10/24 03:15:50 UTC

[jira] Created: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Email validator's regexp pattern causes possibly infinite loop
--------------------------------------------------------------

                 Key: TAPESTRY-1857
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 4.1.3
            Reporter: Ulrich Stärk
            Priority: Critical
             Fix For: 4.1.4
         Attachments: Test.java

The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------

    Attachment: patch.txt

I wrote a patch for the regex pattern that
a) uses non-greedy quantifiers (backtracking should be avoided and is most likely the source of this bug)
b) takes into account most of the restrictions placed upon email addresses as outlined in RFC 3696 (distilled from RFCs 2821 and 2822)

Limitations:
- doesn't allow for backslash-quoted chars in the local part
- doesn't allow for a double-quote quoted local part
- domain names consisting exclusively of digits are allowed (like 12345678.com which actually is not allowed but in practice this is disregarded)

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Priority: Critical
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537204 ] 

Andreas Andreou commented on TAPESTRY-1857:
-------------------------------------------

Actually wait!  i've copied the logic from dojo's validator and it looks nice...
even includes all valid TLD names

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538034 ] 

Ulrich Stärk commented on TAPESTRY-1857:
----------------------------------------

I accidentally uploaded a patch I created before running the tests where I forgot to escape the '#' character. In my local version it is escaped so the tests pass...

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538021 ] 

Andreas Andreou commented on TAPESTRY-1857:
-------------------------------------------

but now, all tests fail! there's something wrong with the last patch

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou updated TAPESTRY-1857:
--------------------------------------

    Component/s: Framework
       Priority: Blocker  (was: Critical)

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------

    Attachment: Test.java

I attached a test case demonstrating the issue

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Priority: Critical
>             Fix For: 4.1.4
>
>         Attachments: Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538029 ] 

Ulrich Stärk commented on TAPESTRY-1857:
----------------------------------------

weird... they run fine for me (see below)...

[Parser] Running:
  C:\Dokumente und Einstellungen\Uli\Eigene Dateien\Eclipse Workspaces\Eclipse 3.3\tapestry\temp-testng-customsuite.xml

PASSED: test_Render_Contribution
PASSED: test_Fail("fred")
PASSED: test_Fail("foooooooooooooooooooooo")
PASSED: test_Fail("foooooooooooooooooooooooooooo")
PASSED: test_Fail("LASKFODSKFO@$#)DJMZCV)TQKALAD")
PASSED: test_Fail("")
PASSED: test_OK("hlship@apache.org")
PASSED: test_OK("j@apache.org")
PASSED: test_OK("jkuhnert@a.org")
PASSED: test_OK("J@A.oRg")
PASSED: test_OK("foo@example-bar.domain.com")
PASSED: test_OK("FOO@EXample-bAr.domain.com")
PASSED: test_OK("_foo@example.com")
PASSED: test_OK("$user+mailbox_@example-domain.com")
PASSED: test_Render_Contribution_Custom_Message
PASSED: test_Fail_Custom_Message

===============================================
    org.apache.tapestry.form.validator.TestEmail
    Tests run: 16, Failures: 0, Skips: 0
===============================================


===============================================
tapestry
Total tests run: 16, Failures: 0, Skips: 0
===============================================

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------

    Attachment:     (was: TAPESTRY-1857.txt)

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------

    Attachment: TAPESTRY-1857.txt

correct patch...

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-1857.
---------------------------------------

    Resolution: Fixed

Should be ok now - there's still room for improvements + customizations on it (like a flag for allowing
localhost emails) but it should be much better now... Reopen if you feel there's still a problem somewhere.

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Reopened: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk reopened TAPESTRY-1857:
------------------------------------


Error in the USER_PATTERN: should be \\d not \\\\d
Still some common RFC-compliant mail addresses like _foo@bar.com or foo_@bar.com and addresses containing other allowed chars will get rejected.

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-1857.
---------------------------------------

    Resolution: Fixed

Thx again Ulrich!

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537193 ] 

Andreas Andreou commented on TAPESTRY-1857:
-------------------------------------------

Before revision 483838, we were using 
public static final String PATTERN = "^\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,6}$";
which (just like the suggested pattern) works very fast
but fails for single chars in local or domain part - our test case includes
j@apache.org, jkuhnert@a.org

I'm wondering if:
a) such emails are valid (dojo's js validator says yes)
b) it's worth supporting, considering the DOS opportunities.
c) there's anything better

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou reassigned TAPESTRY-1857:
-----------------------------------------

    Assignee: Andreas Andreou

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Critical
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537200 ] 

Ulrich Stärk commented on TAPESTRY-1857:
----------------------------------------

That pattern has several flaws:

1.) domain names with several successive '.' will pass (e.g. foo@bar.....l.com)
2.) characters commonly found in local parts like '+' are not covered by '\w'
3.) RFC 3696 (http://tools.ietf.org/html/rfc3696) says: "The LDH rule, as updated, provides that the labels (words or strings separated by periods) that make up a domain name must consist of only the ASCII [ASCII] alphabetic and numeric characters, plus the hyphen." '\w' also contains the underscore char ('_') thus allowing for invalid domains.

As to your wonderings :-)
a) they are
b) at least in the local part we should support single chars
c) there will always be tradeoffs you have to make. if you want to be fully rfc compliant you'd have to use someting like http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html as you mentioned earlier. the pattern i provided addresses the 3 points mentioned above. it has one mistake though, i mixed up the quantifier at some points, will fix that right away.

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1857) Email validator's regexp pattern causes possibly infinite loop

Posted by "Ulrich Stärk (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------

    Attachment: TAPESTRY-1857-2.txt
                TAPESTRY-1857.txt

TAPESTRY-1857.txt is a patch org.apache.tapestry.form.validator.Email,
TAPESTRY-1857-2.txt patches the test case

> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1857
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Ulrich Stärk
>            Assignee: Andreas Andreou
>            Priority: Blocker
>             Fix For: 4.1.4
>
>         Attachments: patch.txt, TAPESTRY-1857-2.txt, TAPESTRY-1857.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop in java.util.regex.Pattern with some input.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org