Aron Roberts [Mon, 9 Jan 2012 21:30:30 +0000 (21:30 +0000)]
CSPACE-4727,CSPACE-4471,CSPACE-4472: Finished reviewing lists of fields in all records that hold authority references (authRefs) and vocabulary term references (termRefs) outside of Cataloging / CollectionObjects (previously checked in via r6251), and updated services prototype tenant bindings accordingly.
Aron Roberts [Thu, 5 Jan 2012 03:15:08 +0000 (03:15 +0000)]
CSPACE-4727,CSPACE-4471,CSPACE-4472: Completely reviewed the extensive list of fields in Cataloging / CollectionObject that hold authority references (authRefs) and vocabulary term references (termRefs), and updated services prototype tenant bindings accordingly. Reordered these configuration entries to follow the pattern of the various wiki schema pages for information groups in Cataloging, for ease of future maintenance. Made a minor update to a services authRefs test to reflect these configuration changes.
Aron Roberts [Wed, 4 Jan 2012 02:02:19 +0000 (02:02 +0000)]
CSPACE-3931,CSPACE-4490: Cleaned up / removed vestigial top-level otherNumber, otherNumberType fields in services schema for Cataloging / CollectionObject. (These were long ago replaced by a repeatable otherNumberList repeatable group, but were retained until now for backwards compatibility.) Also removed the vestigial remNumber field in that same record type.
Aron Roberts [Tue, 3 Jan 2012 23:06:42 +0000 (23:06 +0000)]
CSPACE-4727: Reformatted prototype services tenant bindings file prior to termRefs work. Minor improvements to comments, etc. Added missing service:properties tag in locations_common part.
Aron Roberts [Tue, 3 Jan 2012 07:33:15 +0000 (07:33 +0000)]
CSPACE-4572: Services client tests more widely check response status codes prior to getting entity bodies from those responses, thus helping prevent actual error responses from being masked by 'Could not find JaxbContextFinder for media type: text/plain ...' messages. In nearly all such places prior to calling getEntity(), also replaced more verbose checking of status codes with calls to assertStatusCode() method in a base client test class.
Richard Millet [Mon, 2 Jan 2012 20:21:08 +0000 (20:21 +0000)]
CSPACE-4748, CSPACE-4750: Added a new class to the http client hierarchy to consolidate/share existing code that deals with loading/creating xml payloads for the tests.
Richard Millet [Mon, 2 Jan 2012 18:13:54 +0000 (18:13 +0000)]
CSPACE-4748, CSPACE-4750: Fixed issue with image metadata not being correctly extracted. Also fixed problem with temporary image files showing up in the wrong locations. Included some minor cleanup of a few of the base client test classes.
Aron Roberts [Mon, 19 Dec 2011 01:29:00 +0000 (01:29 +0000)]
CSPACE-4684,CSPACE-4728: Adding services scripts directory for maintaining utility scripts used in continuous integration, distribution prep, and other such purposes under version control. Adding initial script used for prepping a copy of a working Apache Tomcat folder, under CollectionSpace 2.0, for distribution as a tarball. This prep include omitting copying of folders containing temporary items (e.g. logs, temp) and eliding passwords.
Richard Millet [Wed, 14 Dec 2011 23:57:22 +0000 (23:57 +0000)]
CSPACE-4735: Nuxeo database "templates" now deprecated since we're using an embedded Nuxeo model. The DM's nuxeoctl tool used to proces this for us and is no longer applicable.
Richard Millet [Wed, 14 Dec 2011 22:26:32 +0000 (22:26 +0000)]
CSPACE-4735: Nuxeo database "templates" now deprecated since we're using an embedded Nuxeo model. The DM's nuxeoctl tool used to proces this for us and is no longer applicable.
Richard Millet [Wed, 14 Dec 2011 22:10:39 +0000 (22:10 +0000)]
CSPACE-4639: Until issue http://issues.collectionspace.org/browse/CSPACE-4639 is resolved, we need to use this patched Nuxeo artifact that is only available on our public Maven repository -see http://source.collectionspace.org:8081/artifactory Once the issue is resolved and a public version of the artifact becomes available, we should revert this dependency's version to be the following: <version>${nuxeo.core.version}</version>
Aron Roberts [Wed, 14 Dec 2011 03:11:15 +0000 (03:11 +0000)]
CSPACE-4632: Checking in config changes from Patrick to services tenant bindings that specify object name and number properties for Organization and Taxon records. These properties were already present for Person and Storage Location, but had been missing from the former two authorities.
Aron Roberts [Tue, 13 Dec 2011 20:13:36 +0000 (20:13 +0000)]
CSPACE-4687: Authority term references in the Measured By field, within the nested Measured Part / Dimensions structure in Cataloging / CollectionObject and Media records, are now returned by services calls to return authorityrefs. These terms aren't (yet) showing up in the termsused array sent from app to UI; this might require additional investigation.
Richard Millet [Tue, 13 Dec 2011 18:49:15 +0000 (18:49 +0000)]
CSPACE-4639: Until issue http://issues.collectionspace.org/browse/CSPACE-4639 is resolved, we need to use this patched Nuxeo artifact that is only available on our public Maven repository -see http://source.collectionspace.org:8081/artifactory Once the issue is resolved and a public version of the artifact becomes available, we should revert this dependency's version to be the following: <version>${nuxeo.core.version}</version>
Patrick Schmitz [Tue, 13 Dec 2011 03:48:45 +0000 (03:48 +0000)]
CSPACE-4629 displayName change propagation was not working for termList items. Also, at least one case (loanout status), the term was not configured. There are probably more cases of missing termRef configuration. Filing that as a separate bug.
Patrick Schmitz [Sat, 10 Dec 2011 03:04:20 +0000 (03:04 +0000)]
CSPACE-2323, CSPACE-3016, etc., Fixes to properly integrate with new Nuxeo libs, making code clean w.r.t. sessions, fixes to hierarchy handling in authorities.
Changed logging configuration to rotate among 10 files of 5MB each, so we have more context on the server. Also removed the stdout copy that was bloating catalina.out (on 1.13 QA, the file is over 1.1GB).
Added new tests to exercise refObjs and authRefs more carefully.
Tweaked XMLReplay to output clock times for each test, making it easier to align tests with log output.
Added some debug support for startup issues with Nuxeo and Workspaces.
Removed pointless output from LoanoutValidatorHandler.
Aron Roberts [Fri, 2 Dec 2011 00:32:26 +0000 (00:32 +0000)]
CSPACE-3937: Applying Rick's patches to convert Ownership Date in Cataloging / CollectionObject and Date in Media to structured date types, in services schema.
Aron Roberts [Thu, 1 Dec 2011 01:58:21 +0000 (01:58 +0000)]
CSPACE-4486,CSPACE-4589: Made Inscription Content (aka Textual Inscription) and Inscription Description (aka Non-Textual Inscription) fields into two repeatable groups in the Services layer; updated tests.
Richard Millet [Wed, 23 Nov 2011 21:36:39 +0000 (21:36 +0000)]
CSPACE-4526: Updated JaxRsServiceProvider build.xml's deploy and undeploy targets to delete Tomcat's copy of our context.xml file at $CATALINA_BASE/conf/[enginename]/[hostname]/cspace-services.xml. We expected Tomcat would replace this file when a new .war was deployed, but it is not. Since the settings in the this file override the ones inside the .war (and exploded war) and could be stale, we need to delete it.
Patrick Schmitz [Wed, 23 Nov 2011 21:12:08 +0000 (21:12 +0000)]
CSPACE-2818, CSPACE-3537 Refactored logic that handles authorityRefs, refObjs, and displayName update, so that it can handle authRefs in deeply nested structures. Still awaiting latest code from Nuxeo to integrate their updated search, but this change at least fixes 2818, and makes us ready for the fix for 3537 and 2323. Also cleaned up handling of authorityRefs for garbage values - now produces a log error and does not produce an authorityRef item (was producing an empty one). Also added a partial fix and notes to remove the hard-coded resource paths for authority types.
Richard Millet [Wed, 23 Nov 2011 18:33:29 +0000 (18:33 +0000)]
CSPACE-4526: Updated JaxRsServiceProvider build.xml's deploy and undeploy targets to delete Tomcat's copy of our context.xml file at $CATALINA_BASE/conf/[enginename]/[hostname]/cspace-services.xml. We expected Tomcat would replace this file when a new .war was deployed, but it is not. Since the settings in the this file override the ones inside the .war (and exploded war) and could be stale, we need to delete it.
Richard Millet [Wed, 23 Nov 2011 07:34:38 +0000 (07:34 +0000)]
CSPACE-4526: Adding servlet-api dependency to imports/service pom. For some reason, Maven 2.2.1 was finding this javax artifact somewhere in the dependency tree, but Maven 3 was not. Seems like Maven 3 is being more rational.
Aron Roberts [Wed, 23 Nov 2011 00:55:52 +0000 (00:55 +0000)]
CSPACE-4526,CSPACE-1927: Temporarily commented out several XmlReplay-based tests of updating display names in authrefs, when a display name is updated in an authority, necessitated by Tomcat 6 / Nuxeo 5.4.x changes.
Patrick Schmitz [Tue, 22 Nov 2011 20:00:22 +0000 (20:00 +0000)]
CSPACE-2818, CSPACE-3537 Refactored logic that handles authorityRefs, refObjs, and displayName update, so that it can handle authRefs in deeply nested structures. Still awaiting latest code from Nuxeo to integrate their updated search, but this change at least fixes 2818, and makes us ready for the fix for 3537 and 2323. Also cleaned up handling of authorityRefs for garbage values - now produces a log error and does not produce an authorityRef item (was producing an empty one). Also added a partial fix and notes to remove the hard-coded resource paths for authority types.
Aron Roberts [Tue, 22 Nov 2011 05:26:57 +0000 (05:26 +0000)]
CSPACE-4256: Merged services trunk changes from r5918 through r6056 into the Apache 6 / Nuxeo 5.4.2 services branch. All tests ran successfully, except for two individual test cases in an authRefs-related XmlReplay test group, which have been commented out for now: afterUpdateGetLoan5 and afterUpdateGetLoan9. (Both appear to test if changes to a display name in a Person record are propagated to the display name in authRef-containing field(s) in Loan In.)
Aron Roberts [Tue, 22 Nov 2011 00:19:35 +0000 (00:19 +0000)]
CSPACE-4526: With Richard, parameterized additional data source configuration files via POM replacement. Some of these changes will be moot once integrated with forthcoming Nuxeo fix for JNDI corruption issue.
Aron Roberts [Sat, 19 Nov 2011 00:05:18 +0000 (00:05 +0000)]
CSPACE-3937,CSPACE-4490: In services Cataloging / CollectionObject schema, converted contentDate to a structured date; was formerly a scalar date field. Made the existing objectProductionDateGroup structured date field repeatable, renaming the parent element to objectProductionDateGroupList. Removed a legacy top-level set of scalar fields, believed to be unused, that appear to constitute an early prototype or placeholder for structured date.
Aron Roberts [Thu, 17 Nov 2011 19:47:05 +0000 (19:47 +0000)]
CSPACE-3943,CSPACE-3937: Added earliest and latest scalar date value fields, and scalar value computed flag, to objectProductionDate in services Cataloging / CollectionObject schemas. These fields will also appear in all other instances of structured dates created via CSPACE-3937.
Aron Roberts [Thu, 17 Nov 2011 04:06:40 +0000 (04:06 +0000)]
CSPACE-4469: The value of the uri element in the collectionspace_core part for Contact records now reflects the contextual path through which the Contact was created, with the 'owning' authority and item.
Aron Roberts [Wed, 16 Nov 2011 22:33:58 +0000 (22:33 +0000)]
CSPACE-4582: When retriving lists of taxon terms, the uri fields in list items now correctly reflect the name of the parent authority ('taxonomyauthority').
Patrick Schmitz [Tue, 15 Nov 2011 23:29:58 +0000 (23:29 +0000)]
CSPACE-4394 - Added a "ts" filter parameter to the list/search for authority items. Takes a pipe ('|', a.k.a. %7C when URL encoded) separated list of strings that will be matched against the termStatus. All terms with a matching term status will be excluded from the results. This can result in 0 results, without problems. This can also be combined with other params, including pt.
Richard Millet [Tue, 15 Nov 2011 22:10:22 +0000 (22:10 +0000)]
CSPACE-4526: More cleaning up some of the servlet initialization settings and log messages. Creating new "nuxeo-server" directory for embedded instance of Nuxeo EP. This is essentially the equivalent of the "nuxeo-client" directory for the two-server/remote Nuxeo EP.
Aron Roberts [Tue, 15 Nov 2011 07:26:36 +0000 (07:26 +0000)]
CSPACE-4057: Fixed another test to reflect change of fields to date datatype, after verifying that Nuxeo still generates a timestamp datatype in PostgreSQL as well as with MySQL, regardless of whether xs:date or xs:dateTime is used in the XSD schema.
Patrick Schmitz [Tue, 15 Nov 2011 00:22:26 +0000 (00:22 +0000)]
CSPACE-1927 Update to displayName for an authority item will update all the references to that item. Loops through found referring objects in sets of 100, updates the fields that match, and saves en bulk (does not invoke normal validation, etc.). Fixed some minor bugs in Person Validation handlers that would produce gratuitous errors.
Aron Roberts [Mon, 14 Nov 2011 23:38:04 +0000 (23:38 +0000)]
CSPACE-4057,CSPACE-3268,CSPACE-3269: Set datatype of multiple date fields, across various object, procedural and authority records, to a date type (xs:date) in services XSD schema. Revised tests accordingly. Added loanInAuthorizationDate and repeatable loanStatus group to Loan In Schema. Added borrowersAuthorizer and borrowersAuthorizationDate fields to Loan Out Schema, also renamed loanedObjectStatus repeatable group and its fields to name/prefix loanStatus.