You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2019/11/11 02:09:00 UTC

[jira] [Commented] (JAMES-2950) Username should not accept some special characters

    [ https://issues.apache.org/jira/browse/JAMES-2950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971271#comment-16971271 ] 

Benoit Tellier commented on JAMES-2950:
---------------------------------------

https://github.com/linagora/james-project/pull/2841 proposed a rewritte of RRT regex tests.

RRT regex was trying to fit a 'regex' in a string representing a Username. Tests were actively testing this bug, causing the tests to be meaningless.

This PR:
 - Rewrite the test in order not to rely exclusively on error buggy handling, which also makes the feature easier to understand.
 - Did fix the buggy error handling.

> Username should not accept some special characters
> --------------------------------------------------
>
>                 Key: JAMES-2950
>                 URL: https://issues.apache.org/jira/browse/JAMES-2950
>             Project: James Server
>          Issue Type: Bug
>            Reporter: René Cordier
>            Priority: Major
>             Fix For: 3.5.0
>
>
> Able to create username with some special characters that should be restricted, such as:  space and {{"(),:;<>@[\]}}
>  
> We should for more safety and reduce complexity not allow the use of those for the username (more specifically, the local-part of the user address)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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