Issue 10549
DatasetService is returning non dataset agents in the List()
10549
Reporter: trobertson
Assignee: kbraak
Type: Bug
Summary: DatasetService is returning non dataset agents in the List()
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2011-12-21 14:40:05.06
Updated: 2013-12-16 17:50:48.921
Resolved: 2011-12-22 17:12:28.638
Description: Please see DatasetServiceImpl which has:
// TODO: Surely this returns all Agents? Should it not only return Agents that are Resources (Datasets)?
for (Agent a : agentManager.listByPage(page).getResults()) {
This is clearly wrong, but the registry-persistence service does not expose a suitable method to do this
]]>
Author: kbraak@gbif.org
Created: 2011-12-22 17:12:28.665
Updated: 2011-12-22 17:12:28.665
/dataset is working now. The list() is careful to only return resources now, in light of the new method in registry-persistence.
Closing issue.