Project

General

Profile

Bug #2511

escaped '+' in query string (%2B) generating ServiceFailure for getLogRecords

Added by Rob Nahf over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
d1_mn_GMN
Start date:
2012-03-21
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

Description

calls to getLogRecords on gmn-dev that have an escaped '+' in the fromDate (and probably toDate) are throwing ServiceFailures.
Impact is that calls to getLogRecords from the CNs will get the entire log every time, instead of the latest slice.

compare:
https://gmn-dev.test.dataone.org/mn/v1/log?fromDate=2012-02-20T21:18:46%2B00:00
https://gmn-dev.test.dataone.org/mn/v1/log?fromDate=2012-02-20T21:18:46+00:00

however:
a generally-bad date throws the proper InvalidRequest
https://gmn-dev.test.dataone.org/mn/v1/log?fromDate=foooooooo2012-03-15T20:12:54+00:00

and 'fromDate' in listObjects is completely ignored, no matter what's in fromDate. The following all return an ObjectList:

https://gmn-dev.test.dataone.org/mn/v1/object
https://gmn-dev.test.dataone.org/mn/v1/object?fromDate=2012-03-12T20:12:54.084+00:00
https://gmn-dev.test.dataone.org/mn/v1/object?fromDate=2012-03-12T20:12:54.084%2B00:00
https://gmn-dev.test.dataone.org/mn/v1/object?fromDate=foooooooo2012-03-12T20:12:54.084+00:00

see #2460

(dataone escapes '+' to avoid overloaded semantics where some url encoders escape space to '+')

History

#1 Updated by Roger Dahl over 12 years ago

  • Status changed from New to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)