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 "Gautier DI FOLCO (JIRA)" <se...@james.apache.org> on 2018/06/13 13:15:00 UTC

[jira] [Created] (JAMES-2425) Do not leak protocol over webadmin

Gautier DI FOLCO created JAMES-2425:
---------------------------------------

             Summary: Do not leak protocol over webadmin
                 Key: JAMES-2425
                 URL: https://issues.apache.org/jira/browse/JAMES-2425
             Project: James Server
          Issue Type: Bug
          Components: webadmin
            Reporter: Gautier DI FOLCO


A MailRepository is identified by its URL. Such a URL is composed of two parts:
 * The protocol, being an identifier for the storage implementation to be used
 * The path, giving a name to the repository

Currently, WebAdmin uses the full URL to interact with users. However, such a behaviour leaks the protocol. We should only use the name as an identifier.

This means that:
 * MailRepositoryStore API needs to return all the MailRepositories matching a given name (but with different protocols)
 * WebAdmin would need to aggregate these MailRepositories into a virtual one. Maybe we can easily implement this by introducing a MailRepositoryAggregate, that emulates a MailRepositories on top of other MailRepositories:
 ** Applies the deletes in all mail repositories
 ** Merges the list of MailKeys of all underlying MailRespositories. size is the sum.
 ** Reading a single mail will be performed on all repositories.
 ** This class should not allow storing Mails

Endpoints will become {{GET}}
{code:java}
/mailRepositories/%2F%2Fvar%2Ferror%2F{code}



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