[ 
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:
{code:java}
PUT http://localhost:8000/users/[email protected]/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!

  was:
Add validate mailboxName with: .. - consecutively dots.
 Request:
{code:java}
PUT http://localhost:8000/users/[email protected]/mailboxes/mail....box{code}
Response:
{code:java}
{"statusCode": 500, "type": "ServerError", "message": "WebAdmin encountered an 
unexpected internal error", "details": null } {code}
[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]


> [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
>         Attachments: image.png, image2.png
>
>
> Add validate mailboxName with: .. - consecutively dots.
>  Request:
> {code:java}
> PUT http://localhost:8000/users/[email protected]/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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to