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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2020/06/04 02:23:00 UTC
[jira] [Resolved] (JAMES-3199) [WebAdmin] improve mailbox localpart
validate
[ https://issues.apache.org/jira/browse/JAMES-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier resolved JAMES-3199.
-----------------------------------
Fix Version/s: 3.6.0
Resolution: Fixed
https://github.com/linagora/james-project/pull/3418 solved this by removing checks from the webadmin layer, relying on mailbox-api checks, and managing the resulting exceptions.
> [WebAdmin] improve mailbox localpart validate
> ---------------------------------------------
>
> Key: JAMES-3199
> URL: https://issues.apache.org/jira/browse/JAMES-3199
> Project: James Server
> Issue Type: Improvement
> Reporter: Nguyễn Việt Đức
> Priority: Major
> Fix For: 3.6.0
>
> Attachments: image.png, image2.png
>
>
> Add validate mailboxName with: .. - consecutively dots.
> Request:
> {code:java}
> PUT http://localhost:8000/users/user1@james.local/mailboxes/mail....box{code}
> Response:
> {code:java}
> {"statusCode": 500, "type": "ServerError", "message": "WebAdmin encountered an unexpected internal error", "details": null } {code}
> !image.png!
>
> Expected result
> Should return 400 error code for invalid mailbox name. Example:
> !image2.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org