Bug 964227

Summary: Server allows putting metric data with timestamp older than 1 week
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: RESTAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8CC: theute
Target Milestone: ---   
Target Release: RHQ 4.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 09:52:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2013-05-17 15:18:01 UTC
Description of problem:

Server accepts raw metric data through REST API that are older than 7 days - it should reject it, because we don't store 

Version-Release number of selected component (if applicable):
RHQ 4.8-master

How reproducible:always


Steps to Reproduce:
1 have a MEASUREMENT schedule ID
2. do PUT /rest/metric/data/<ID>/raw/12345 data:{"timeStamp": 12345, "value": 0.5}
  
Actual results: server accepts those data and as a response location header it returns URL where I can get those data. In case of old timestamp, such URL returns an error (expected)


Expected results: server should reject such data, because it cannot store it anyway

Comment 1 Heiko W. Rupp 2013-06-06 11:30:56 UTC
master 25eb665838cba29ea7b4e3c76e70698d43066a1f

Comment 2 Heiko W. Rupp 2013-09-11 09:52:29 UTC
Bulk closing of old issues now that HRQ 4.9 is in front of the door.

If you think the issue has not been solved, then please open a new bug and mention this one in the description.