Issue 10812

organization & node services expose all agent types

10812
Reporter: mdoering
Type: Bug
Summary: organization & node services expose all agent types
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-02-13 12:10:40.532
Updated: 2013-12-16 17:51:01.643
Resolved: 2012-02-23 11:25:25.938
        
Description: The organization and node services return all agents, no matter if nodes, organisazions or other types.

Single detail lookups should return a 404 if the agent type is wrong, but they don't. For example this node is available via the organization url:
http://staging.gbif.org:8080/registry-ws/organization/03e816b3-8f58-49ae-bc12-4e18b358d6d9

Lists should only page thru the right types. This one returns nodes as the first records:
http://staging.gbif.org:8080/registry-ws/organization/?limit=2]]>
    


Author: mdoering@gbif.org
Comment: Listing fixed, individual 404s still not working, but not critical anymore
Created: 2012-02-13 17:09:11.528
Updated: 2012-02-13 17:09:11.528


Author: mdoering@gbif.org
Comment: Fixed some time ago by updated factories. Its an invalid issue now and the examples given are correctly returning a 404 now
Created: 2012-02-23 11:25:25.971
Updated: 2012-02-23 11:25:25.971