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

ASF GitHub Bot commented on JAMES-2389:
---------------------------------------

Github user chibenwa commented on a diff in the pull request:

    https://github.com/apache/james-project/pull/114#discussion_r187824389
  
    --- Diff: 
server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
 ---
    @@ -770,7 +770,7 @@ public String getUser(MailAddress mailAddress) throws 
UsersRepositoryException {
             if (supportVirtualHosting()) {
                 return mailAddress.asString();
             } else {
    -            return mailAddress.getLocalPart();
    +            return mailAddress.getLocalPart().toLowerCase();
    --- End diff --
    
    `toLowerCase()` needs to take a Locale as parameter (as the locale might 
impact the operation.
    
    Here you might want: `toLowerCase(Locale.US)`


> Inbox User Name is case sensitive so wrong inbox generated
> ----------------------------------------------------------
>
>                 Key: JAMES-2389
>                 URL: https://issues.apache.org/jira/browse/JAMES-2389
>             Project: James Server
>          Issue Type: Bug
>          Components: data
>    Affects Versions: 3.0.1
>            Reporter: mostafa vtp
>            Priority: Major
>
> Hi
>  When sending an email to a user with no lower case user name, a new Inbox is 
> created for that user.
>  For example assume:
>  I have a user with "test1@t.t1" name for example. When I send mail to 
> "*Test1*@t.t1", James accepts it but *creates a new mail box* with 
> "Test1@t.t1" name in database(JAMES_MAILBOX table in USER_NAME field) *and 
> "test1@t.t1" user can't see the email.*
>  It seems user existence check is case insensitive but mailbox creation is 
> case sensitive.
>  James should not create a new inbox in this situation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to