Tellier Benoit created JAMES-1589:
-------------------------------------

             Summary: 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
            Reporter: Tellier Benoit


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 [email protected] 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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to