Bug 964227 - Server allows putting metric data with timestamp older than 1 week
Summary: Server allows putting metric data with timestamp older than 1 week
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.8
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-17 15:18 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-11 09:52:29 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.