[
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 "[email protected]" name for example. When I send mail to
> "*Test1*@t.t1", James accepts it but *creates a new mail box* with
> "[email protected]" name in database(JAMES_MAILBOX table in USER_NAME field) *and
> "[email protected]" 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: [email protected]
For additional commands, e-mail: [email protected]