[
https://issues.apache.org/jira/browse/JAMES-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nguyễn Việt Đức updated JAMES-3199:
-----------------------------------
Description:
Add validate mailboxName with: .. - consecutively dots.
Request:
```
PUT http://localhost:8000/users/[email protected]/mailboxes/mail....box
```
Response:
```
{
"statusCode": 500,
"type": "ServerError",
"message": "WebAdmin encountered an unexpected internal error",
"details": null
}
```
[image|https://ci.linagora.com/linagora/lgs/openpaas/james/uploads/a2deea3499499a4b2e3845a0e04ba363/image.png]
### Expected result
Should return 400 error code for invalid mailbox name. Example:
[image|https://ci.linagora.com/linagora/lgs/openpaas/james/uploads/d66ef138983e7578d04e69749762b641/image.png]
was:
Add validate mailboxName with: .. - consecutively dots.
Request:
```
PUT http://localhost:8000/users/[email protected]/mailboxes/mail....box
```
Response:
```
{
"statusCode": 500,
"type": "ServerError",
"message": "WebAdmin encountered an unexpected internal error",
"details": null
}
```

### Expected result
Should return 400 error code for invalid mailbox name. Example:

> [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
>
> Add validate mailboxName with: .. - consecutively dots.
> Request:
> ```
> PUT http://localhost:8000/users/[email protected]/mailboxes/mail....box
> ```
> Response:
> ```
> {
> "statusCode": 500,
> "type": "ServerError",
> "message": "WebAdmin encountered an unexpected internal error",
> "details": null
> }
> ```
> [image|https://ci.linagora.com/linagora/lgs/openpaas/james/uploads/a2deea3499499a4b2e3845a0e04ba363/image.png]
> ### Expected result
> Should return 400 error code for invalid mailbox name. Example:
> [image|https://ci.linagora.com/linagora/lgs/openpaas/james/uploads/d66ef138983e7578d04e69749762b641/image.png]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]