[ 
https://issues.apache.org/jira/browse/UNOMI-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Serge Huber updated UNOMI-1021:
-------------------------------
    Description: 
h3. In short

Asking for a report by an unsupported time period (for example "every 2 days") 
returns an empty answer instead of an error, so the caller cannot tell what 
went wrong.

h3. Details
* Date aggregates only support {{1s, 1m, 1h, 1d, 1w, 1M, 1q, 1y}} or {{Second}} 
to {{Year}}.
* Other values such as {{2d}} fail inside the engine request; the error is 
logged and REST returns 204.

h3. Fix and test

Reject unsupported intervals in {{DateAggregate}}. A date aggregate with 
interval {{2d}} returns 400; {{1d}} and {{Day}} still work.

  was:
h3. In short

Asking for a report by an unsupported time period (for example "every 2 days") 
returns an empty answer instead of an error, so the caller cannot tell what 
went wrong.

h3. Details
* Date aggregates only support {{1s}} to {{1y}} ({{1s, 1m, 1h, 1d, 1w, 1M, 1q, 
1y}}) and {{Second}} to {{Year}}.
* Other values such as {{2d}} fail inside the engine request; the error is 
logged and REST returns 204.

h3. Fix and test

Reject unsupported intervals in {{DateAggregate}}. A date aggregate with 
interval {{2d}} returns 400; {{1d}} and {{Day}} still work.


> Aggregate with an unsupported date interval returns an empty response instead 
> of an error
> -----------------------------------------------------------------------------------------
>
>                 Key: UNOMI-1021
>                 URL: https://issues.apache.org/jira/browse/UNOMI-1021
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: Serge Huber
>            Priority: Major
>             Fix For: unomi-4.0.0
>
>
> h3. In short
> Asking for a report by an unsupported time period (for example "every 2 
> days") returns an empty answer instead of an error, so the caller cannot tell 
> what went wrong.
> h3. Details
> * Date aggregates only support {{1s, 1m, 1h, 1d, 1w, 1M, 1q, 1y}} or 
> {{Second}} to {{Year}}.
> * Other values such as {{2d}} fail inside the engine request; the error is 
> logged and REST returns 204.
> h3. Fix and test
> Reject unsupported intervals in {{DateAggregate}}. A date aggregate with 
> interval {{2d}} returns 400; {{1d}} and {{Day}} still work.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to