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 "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2017/08/08 10:51:00 UTC

[jira] [Resolved] (JAMES-1589) Contains domain does not work on auto detected domains

     [ https://issues.apache.org/jira/browse/JAMES-1589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tellier Benoit resolved JAMES-1589.
-----------------------------------
    Resolution: Fixed

https://github.com/linagora/james-project/pull/912 corrected this.

> Contains domain does not work on auto detected domains
> ------------------------------------------------------
>
>                 Key: JAMES-1589
>                 URL: https://issues.apache.org/jira/browse/JAMES-1589
>             Project: James Server
>          Issue Type: Bug
>          Components: UsersStore & UsersRepository
>            Reporter: Tellier Benoit
>              Labels: easyfix
>
> Here are the following commands :
> root@yoda:/home/btellier# docker exec 9253 /root/james-server-app-3.0.0-beta5-SNAPSHOT/bin/james-cli.sh -h 127.0.0.1 -p 9999 listdomains
> domain
> james.linagora.com
> 172.17.3.33
> 172.17.3.33
> root@yoda:/home/btellier# docker exec 9253 /root/james-server-app-3.0.0-beta5-SNAPSHOT/bin/james-cli.sh -h 127.0.0.1 -p 9999 adduser toto@172.17.3.33 p
> Error while execute command:
> Domain does not exist in DomainList
> What we can see is that James list domains that do not really exists. I can not use an auto detected domain.
> Why ?
> Domain auto detection is done on AbstractDomainList in getDomains operation.
> It is not done in containsDomain operation.
> So when I try to add a user above, code fails on the containsDomain that returns false.
> Solution is to make the same resolution on containsUser
> Acceptance criteria :
>  - I can add a user to an auto detected domain
>  - Improve auto detection handling : 
>     - an auto detected domain can not be deleted ( returns specific error )
>     - an auto detected domain can be added ( as we may want to persist it )
>     - an auto detected domain is contained
>     - an auto detected domain is listed
>  - Tests should be written for auto detection handling for above stories



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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