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 2019/01/16 07:02:00 UTC

[jira] [Resolved] (JAMES-2637) Webadmin CRUD for RRT aliases

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

Tellier Benoit resolved JAMES-2637.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.3.0

https://github.com/linagora/james-project/pull/2098 solved this

> Webadmin CRUD for RRT aliases
> -----------------------------
>
>                 Key: JAMES-2637
>                 URL: https://issues.apache.org/jira/browse/JAMES-2637
>             Project: James Server
>          Issue Type: New Feature
>          Components: RRT, webadmin
>            Reporter: Tellier Benoit
>            Priority: Major
>             Fix For: 3.3.0
>
>
> We should be able to update aliases using the webadmin protocol
> Here is the proposed API:
> {code:java}
> PUT /address/aliases/bob@domain.tld/sources/bob-alias@domain.tld
> Adds a `bob-alias` alias pointing to `bob@domain.tld` main mail address
> 204
> 400 if the alias source (`bob-alias@domain.tld`) is contained in UsersRepository
> 400 if source or destination domain is not handled by James
> No content
> {code}
> (implement PUT in a separate pull request as this is an emergency?)
> {code:java}
> GET /address/aliases
> Returns the mailAddresses having aliases configured.
> 200
> ["bob@domain.tld", "cedric@domain.tld"]
> {code}
> {code:java}
> DELETE /address/aliases/bob@domain.tld/sources/bob-alias@domain.tld
> Deletes the `bob-alias` alias pointing to `bob@domain.tld` main mail address
> 204
> No content
> {code}
> {code:java}
> GET /address/aliases/bob@domain.tld
> Will return all the aliases pointing to bob@domain.tld main mail address
> 200
> [
>     {"source":"bob-alias@domain.tld"},
>     ...
> ]
> {code}
> Create a `AliasRoutes` class in `/server/protocols/webadmin/webadmin-data` and the corresponding tests using the MemoryRecipientRewriteTable.
> Have a look to `ForwardsRoutes` for guidance



--
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