Issue 13175

Adding contacts, etc should throw IAE if main entity does not exist

13175
Reporter: mdoering
Assignee: trobertson
Type: Bug
Summary: Adding contacts, etc should throw IAE if main entity does not exist
Priority: Major
Status: Open
Created: 2013-05-15 13:39:51.484
Updated: 2013-12-12 17:32:45.872
        
Description: For example the TagService.addTag(UUID targetEntityKey, String value) should throw an IAE in case the targetEntity does not exist.
Currently this is unchecked and passed thru to mybatis which throws persistence errors. Need to check for existance and add tests to make sure correct exceptions are thrown.

Affects most of the implementation of ContactService, EndpointService, MachineTagService, TagService, IdentifierService and CommentService]]>