Bug 1024348 - GET on /metric/<ID>/data/raw does not return data when endTime and startTime are same
Summary: GET on /metric/<ID>/data/raw does not return data when endTime and startTime ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: REST
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ER05
: JON 3.2.0
Assignee: Heiko W. Rupp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 13:14 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2013-10-29 13:14:51 UTC
Description of problem:

When pushing raw data to our rest api using PUT, server returns 'location' response header, which leads to something like:

rest/metric/data/10008/raw?startTime=1383051757650&endTime=1383051757650

but, when you GET on this URL, server returns no data


Version-Release number of selected component (if applicable):
JON 3.2.ER4

How reproducible: always


Steps to Reproduce:
1. PUT raw data to any metric
2. follow 'location' header returned by server

Actual results: server returns no results on target (location header) URL

but .. if you change such URL to startTime=1383051757650&endTime=1383051757651 you get expected data (1 result just created by PUT)

Expected results: on PUT request, server should return either fixed location header, or GETting data with same startTime and endTime should return data with given timestamp


Additional info:

There is a test hitting this bug:

clone it from https://github.com/RedHatQE/jon-tests/tree/master/rest-python

run it by: python run.py --group=putmetric

Comment 1 Mike Foley 2013-10-29 17:11:20 UTC
as this is PRD requirement RST-001a , making it block JON 3.2 GA 

there is a workaround documented, but dev should probably look at this for JON 3.2 as REST API is now full support and out of tech preview

Comment 2 Heiko W. Rupp 2013-10-29 20:28:50 UTC
master cde73749
release branch 038fc8ede73

Comment 3 Simeon Pinder 2013-11-07 02:17:58 UTC
Moving to ON_QA for test with new brew build.

Comment 4 Libor Zoubek 2013-11-07 11:31:25 UTC
verified on JON 3.2.ER5


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