Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 18.0.2, Meridian-2015.1.3, Meridian-2016.1.3
-
Fix Version/s: 18.0.3, Meridian-2016.1.4, 19.0.0, Meridian-2017.1.0
-
Component/s: REST
-
Security Level: Default (Default Security Scheme)
-
Labels:None
-
Sprint:Horizon - Nov 2nd
Description
The /rest/outages/forNode/[nodeId] endpoint incorrectly calculates the range of dates that it returns. It appears the author meant to return only the outages from the current week, but a coding error leads to it including only 1/1000 of one week:
(Constructing a java.util.Date based on subtracting a value from System.getCurrentTimeMillis() but not multiplying the subtracted value by 1000)
Also: this date range should be configurable. Defaulting to one week is fine, but the user should be able to override it.