]> git.aero2k.de Git - tmp/jakarta-migration.git/commit
CSPACE-2542 Bug was a side effect of an improperly constructed Person item (passing...
authorPatrick Schmitz <pschmitz@berkeley.edu>
Sat, 28 Aug 2010 03:01:02 +0000 (03:01 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Sat, 28 Aug 2010 03:01:02 +0000 (03:01 +0000)
commitb9991a98ccf0399e23f124545c55e84189cc19ba
treefd31ffedfa55d23cb06604bf9825d5a23901a073
parentdfb487991d0ba90ec45d90a5b040a1c9eca198ab
CSPACE-2542 Bug was a side effect of an improperly constructed Person item (passing in a payload with inAuthority set to something different from the authority the Person was actually being added to). This is turn was not detected by services code which should have forced this to be correct. Changed services code for authorities to ensure that this cannot happen. inAuthority values in payloads will be ignored. Made analogous changes to contact service, which has parent references.
12 files changed:
services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java
services/common/src/main/java/org/collectionspace/services/common/vocabulary/nuxeo/AuthorityItemDocumentModelHandler.java
services/contact/service/src/main/java/org/collectionspace/services/contact/AuthorityResourceWithContacts.java
services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java
services/intake/client/src/test/java/org/collectionspace/services/client/test/OrganizationAuthRefDocsTest.java
services/location/client/src/main/java/org/collectionspace/services/client/LocationAuthorityClientUtils.java
services/location/client/src/test/java/org/collectionspace/services/client/test/LocationAuthorityServiceTest.java
services/organization/client/src/main/java/org/collectionspace/services/client/OrgAuthorityClientUtils.java
services/organization/client/src/test/java/org/collectionspace/services/client/test/OrgAuthorityAuthRefsTest.java
services/organization/client/src/test/java/org/collectionspace/services/client/test/OrgAuthorityServiceTest.java
services/vocabulary/client/src/main/java/org/collectionspace/services/client/VocabularyClientUtils.java
services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java