Project

General

Profile

Bug #7270

CN.listObjects doesn't filter result based on fromDate, toDate parameters

Added by Peter Slaughter over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2015-07-23
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

The request "https://cn.dataone.org/cn/v1/object?fromDate=2013-01-01T01:01:01.001+00:00&toDate=2013-01-03T01:01:01.001+00:00"
returns info for objects with dateSysMetadataModified values outside of the time range specified by fromDate > toDate. This was
tested on CCI 1.5.2

History

#1 Updated by Jing Tao over 9 years ago

  • Assignee set to Jing Tao
  • Target version set to CCI-2.0.0

#2 Updated by Jing Tao over 9 years ago

MN.listObjects has the same issue. The tomcat log showed;
metacat 20150728-16:58:15: [WARN]: Could not parse fromDate: 2013-01-01T01:01:01.001 00:00 [edu.ucsb.nceas.metacat.restservice.D1ResourceHandler]
metacat 20150728-16:58:15: [WARN]: Could not parse toDate: 2013-01-03T01:01:01.001 00:00 [edu.ucsb.nceas.metacat.restservice.D1ResourceHandler]

#3 Updated by Jing Tao over 9 years ago

After dug around, I found the problem is the "+" in the url. It should be encoded by "%2B"
This url works:
https://cn.dataone.org/cn/v1/object?fromDate=2013-01-01T01:01:01.001%2B00:00&toDate=2013-01-03T01:01:01.001%2B00:00

#4 Updated by Jing Tao over 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)