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 2019/11/19 02:47:00 UTC

[jira] [Commented] (JAMES-2964) Able to create User quota/ Domain quota/ Global quota using negative number

    [ https://issues.apache.org/jira/browse/JAMES-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16977076#comment-16977076 ] 

Benoit Tellier commented on JAMES-2964:
---------------------------------------

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

> Able to create User quota/ Domain quota/ Global quota using negative number
> ---------------------------------------------------------------------------
>
>                 Key: JAMES-2964
>                 URL: https://issues.apache.org/jira/browse/JAMES-2964
>             Project: James Server
>          Issue Type: Bug
>    Affects Versions: 3.4.0
>            Reporter: RĂ©mi Kowalski
>            Priority: Major
>
> Description
> Able to create User quota/ Domain quota/ Global quota using negative number
> Example to create Global quota using negative number (ex: -2)
> Request:
> PUT http://localhost:8000/quota
> Body: \{"count":-2,"size":-2}
> Return: 204 code
> Result:
> {
>  "count": -2,
>  "size": -2
> }
> Expected result
> It should return 400 error code when using negative number, except the unlimited value (-1)



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