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

Serge Huber updated UNOMI-1021:
-------------------------------
    Affects Version/s: unomi-4.0.0
                       unomi-3.0.1

> 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
>    Affects Versions: unomi-4.0.0, unomi-3.0.1
>            Reporter: Serge Huber
>            Assignee: Serge Huber
>            Priority: Major
>             Fix For: unomi-4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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