james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-2389) Inbox User Name is case sensitive so wrong inbox generated
Date Sun, 13 May 2018 10:12:00 GMT

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

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

GitHub user mostafavtp opened a pull request:

    https://github.com/apache/james-project/pull/114

    JAMES-2389 fix bug: when sending email with different case, making new inbox for destination
user.

    [JAMES-2389](https://issues.apache.org/jira/browse/JAMES-2389)
    the bug:
    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.
    
    fix: In all implementation of `getUser ` method of `org.apache.james.user.api.UsersRepository`
interface, I converted the result to lower case to avoid generating new inbox.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mostafavtp/james-project patch-4

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/james-project/pull/114.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #114
    
----
commit 1bfc5170daae553e30c90d4790d2ac89f1cc8e84
Author: mostafavtp <mostafa_vtp@...>
Date:   2018-05-13T09:57:10Z

    JAMES-2389 Convert user name to lower case
    
    fix bug: when sending email with different letter case, make new mail box for destination
user.
    more data: https://issues.apache.org/jira/browse/JAMES-2389

commit 2b4d12545c0a49680cab1e78d3e2c9ca403b2a7c
Author: mostafavtp <mostafa_vtp@...>
Date:   2018-05-13T10:02:22Z

    JAMES-2389 Convert user name to lower case
    
    fix bug: when sending email with different letter case, make new mail box for destination
user.
    more data: https://issues.apache.org/jira/browse/JAMES-2389

----


> 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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message