Project

General

Profile

Task #2122

Story #2086: CN issues found when creating tests for Python D1 CNClient

CNRead.listObjects(): count=0 returns all objects on CN

Added by Roger Dahl about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2011-12-08
Due date:
% Done:

100%

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

Description

Calling CNRead.listObjects(count=0) should return an empty ObjectList, but returns all objects.

Calling CNRead.listObjects(count=0) is useful for discovering how many objects are available on the server, since that number gets returned as the "total" slice parameter.

Making the call with count=1 correctly returns only the first object.

History

#1 Updated by Chris Jones about 12 years ago

  • Status changed from New to Closed

Modified Metacat's IdentifierManager.querySystemMetadata() to return an empty list (with correct start and total) when count is requested as 0.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)